WP_Navigation_Block_Renderer
class WP_Navigation_Block_Renderer
// Constructor: function Object() { [native code] } Helper functions used to render the navigation block.
Methods 20 methods
| Method / Return | Description |
|---|---|
| is_responsive() bool | Returns whether or not this is responsive navigation.
Parameters: $attributes: mixed |
| has_submenus() bool | Returns whether or not a navigation has a submenu.
Parameters: $inner_blocks: mixed |
| is_interactive() bool | Determine whether the navigation blocks is interactive.
Parameters: $attributes: mixed, $inner_blocks: mixed |
| does_block_need_a_list_item_wrapper() bool | Returns whether or not a block needs a list item wrapper.
Parameters: $block: mixed |
| get_markup_for_inner_block() string | Returns the markup for a single inner block.
Parameters: $inner_block: mixed |
| get_inner_blocks_html() string | Returns the html for the inner blocks of the navigation block.
Parameters: $attributes: mixed, $inner_blocks: mixed |
| get_inner_blocks_from_navigation_post() WP_Block_List | Gets the inner blocks for the navigation block from the navigation post.
Parameters: $attributes: mixed |
| get_inner_blocks_from_fallback() WP_Block_List | Gets the inner blocks for the navigation block from the fallback.
Parameters: $attributes: mixed |
| get_inner_blocks() WP_Block_List | Gets the inner blocks for the navigation block.
Parameters: $attributes: mixed, $block: mixed |
| get_navigation_name() string | Gets the name of the current navigation, if it has one.
Parameters: $attributes: mixed |
| get_layout_class() string | Returns the layout class for the navigation block.
Parameters: $attributes: mixed |
| get_classes() string | Return classes for the navigation block.
Parameters: $attributes: mixed |
| get_styles() string | Get styles for the navigation block.
Parameters: $attributes: mixed |
| get_responsive_container_markup() string | Get the responsive container markup
Parameters: $attributes: mixed, $inner_blocks: mixed, $inner_blocks_html: mixed |
| get_nav_wrapper_attributes() string | Get the wrapper attributes
Parameters: $attributes: mixed, $inner_blocks: mixed |
| get_nav_element_directives() string | Gets the nav element directives.
Parameters: $is_interactive: mixed |
| handle_view_script_module_loading() void | Handle view script module loading.
Parameters: $attributes: mixed, $block: mixed, $inner_blocks: mixed |
| get_wrapper_markup() string | Returns the markup for the navigation block.
Parameters: $attributes: mixed, $inner_blocks: mixed |
| get_unique_navigation_name() string | Returns a unique name for the navigation.
Parameters: $attributes: mixed |
| render() string | Renders the navigation block.
Parameters: $attributes: mixed, $content: mixed, $block: mixed |
Properties
| Property / Type | Description |
|---|---|
| $has_submenus mixed public | No description available. |
| $needs_list_item_wrapper mixed public | No description available. |
| $seen_menu_names mixed public | No description available. |