MenuItemViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

A ViewHelper for adding a menu item to a doc header menu.

Deprecated

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

It must be a child of :ref:<be:moduleLayout.menu> <typo3-backend-modulelayout-menu>.

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
throws
InvalidArgumentException

        
On this page

Search results