ModuleLayout.menu ViewHelper <be:moduleLayout.menu>

A ViewHelper for adding a menu to the doc header area of <be:moduleLayout>. It accepts only <be:moduleLayout.menuItem> view helpers as children.

Examples

Default:

<be:moduleLayout>
    <be:moduleLayout.menu identifier="MenuIdentifier">
        <be:moduleLayout.menuItem label="Menu item 1" uri="{f:uri.action(action: 'index')}"/>
    </be:moduleLayout.menu>
</be:moduleLayout>
Copied!

Source code

Go to the source code of this ViewHelper: MenuViewHelper.php (GitHub).

Arguments

The following arguments are available for <be:moduleLayout.menu>:

Name Type Default
string
identifier
Type
string
Required

true

Identifier of the menu