MenuViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <backend:modulelayout.menu>

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<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : mixed
Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Tags
throws
Exception

        
On this page

Search results