clanbite_forums_ssr_payload( string $board_template, string $initial_forum, string $initial_topic, int $reply_id, int $topics_per_page, int $replies_per_page ): array{state: array<string, mixed>, context: array<string, mixed>, flags: array{topics_ssr: bool, topic_ssr: bool, forums_index_ssr: bool, topic_route_ssr: bool}}Build SSR store/context patches for a forums front block template.
Namespace: Kernowdev\ClanbiteForums
Parameters
$board_template(string) Requiredforums-index,forum-topics, orforum-topic.$initial_forum(string) RequiredSanitized forum slug.
$initial_topic(string) RequiredSanitized topic slug.
$reply_id(int) RequiredReply deep-link id (0 = full thread).
$topics_per_page(int) RequiredTopics page size.
$replies_per_page(int) RequiredReplies page size.
Returns
array{state: array<string, mixed>, context: array<string, mixed>, flags: array{topics_ssr: bool, topic_ssr: bool, forums_index_ssr: bool, topic_route_ssr: bool}}
Defined in inc/forums-board-ssr.php