ActionMenuViewHelper extends AbstractTagBasedViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:be.menus.actionmenu>
FinalYes
ViewHelper which returns a select box that can be used to switch between multiple actions and controllers and looks similar to TYPO3s "funcMenu".
<f:be.menus.actionMenu>
<f:be.menus.actionMenuItem label="First Menu" controller="Default" action="index" />
<f:be.menus.actionMenuItemGroup label="Information">
<f:be.menus.actionMenuItem label="PHP Information" controller="Information" action="listPhpInfo" />
<f:be.menus.actionMenuItem label="{f:translate(key:'documentation')}" controller="Information" action="documentation" />
...
</f:be.menus.actionMenuItemGroup>
</f:be.menus.actionMenu>
Note: This ViewHelper is experimental and tailored to be used only in extbase context.
Tags
Table of Contents
Properties
- $tagName : string
Methods
- compile() : string
- initializeArguments() : void
- render() : string
Properties
$tagName
protected
string
$tagName
= 'select'
Methods
compile()
public
compile(string $argumentsName, string $closureName, string &$initializationPhpCode, ViewHelperNode $node, TemplateCompiler $compiler) : string
Parameters
- $argumentsName : string
- $closureName : string
- $initializationPhpCode : string
- $node : ViewHelperNode
- $compiler : TemplateCompiler
Return values
stringinitializeArguments()
public
initializeArguments() : void
render()
public
render() : string