MenuViewHelper

class \TYPO3\CMS\Backend\ViewHelpers\ModuleLayout\MenuViewHelper

Extends
AbstractViewHelper
Uses
CompileWithRenderStatic

A ViewHelper for adding a menu to the doc header area of :ref:`<be:moduleLayout> <typo3-backend-modulelayout>`. It accepts only :ref:`<be:moduleLayout.menuItem> <typo3-backend-modulelayout-menuitem>` view helpers as children.

Deprecated

since TYPO3 v11.3, will be removed in TYPO3 v12.0.

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>

Table of Contents

Methods

initializeArguments()  : mixed
Initialize arguments.
renderStatic()  : mixed

Methods

initializeArguments()

Initialize arguments.

public initializeArguments() : mixed

Tags

throws
Exception

renderStatic()

public static renderStatic(array $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : mixed

Parameters

$arguments : array
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

Tags

throws
Exception
On this page