MenuItemViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <backend:modulelayout.menuitem>
A ViewHelper for adding a menu item to a doc header menu.
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
renderStatic()
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : mixed
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface