true ) ); } $page = $attributes['page'] ?? ''; // Seeded into this block's own server context so `server-context-readout` // below is driven by the real `parseServerData` -> `populateServerData` // path rather than by static markup -- see the end-transition test and the "cascaded-commit // absorption on the real server-context path" verifier it discharges. wp_interactivity_state( 'router-navigation-lifecycle', array( 'readout' => "server context for page {$page}" ) ); $next_href = $attributes['next'] ?? null; $other_href = $attributes['other'] ?? null; // Each entry describes one router region this block instance renders: its // id, the href its own (unlabelled) "navigate" link targets, and whether it // is the primary region -- the one that also carries the destination marker // and the server-context readout. $regions = array(); if ( isset( $attributes['regionId'] ) ) { $regions[] = array( 'id' => $attributes['regionId'], 'navigate_href' => $next_href, 'is_primary' => true, ); } if ( isset( $attributes['secondRegionId'] ) ) { $regions[] = array( 'id' => $attributes['secondRegionId'], // The second region's own "navigate" link targets `other`, not // `next` -- deliberately, so a cross-region flow has two distinct // hrefs whose requests a test can hold separately. "Same // structure as the first" stops here: every other link below keeps // its usual meaning for both regions. 'navigate_href' => $other_href, 'is_primary' => false, ); } ?>
page marker:
not hydrated
not hydrated
not hydrated
not hydrated
not hydrated