WP_Navigation_Block_Renderer::get_wrapper_markup()private staticWP 6.5.0

Returns the markup for the navigation block.

Method of the class: WP_Navigation_Block_Renderer{}

No Hooks.

Returns

String. Returns the navigation wrapper markup.

Usage

$result = WP_Navigation_Block_Renderer::get_wrapper_markup( $attributes, $inner_blocks );
$attributes(array) (required)
The block attributes.
$inner_blocks(WP_Block_List) (required)
The list of inner blocks.

Changelog

Since 6.5.0 Introduced.

WP_Navigation_Block_Renderer::get_wrapper_markup() code WP 6.8.1

private static function get_wrapper_markup( $attributes, $inner_blocks ) {
	$inner_blocks_html = static::get_inner_blocks_html( $attributes, $inner_blocks );
	if ( static::is_responsive( $attributes ) ) {
		return static::get_responsive_container_markup( $attributes, $inner_blocks, $inner_blocks_html );
	}
	return $inner_blocks_html;
}