ActionMenuItemViewHelper extends AbstractTagBasedViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:be.menus.actionmenuitem>
ViewHelper which returns an option tag.
This ViewHelper only works in conjunction with :php:\TYPO3\CMS\Fluid\ViewHelpers\Be\Menus\ActionMenuViewHelper
.
.. note:: This ViewHelper is experimental!
Examples
Simple::
<f:be.menus.actionMenu> <f:be.menus.actionMenuItem label="Overview" controller="Blog" action="index" /> <f:be.menus.actionMenuItem label="Create new Blog" controller="Blog" action="new" /> <f:be.menus.actionMenuItem label="List Posts" controller="Post" action="index" arguments="{blog: blog}" /> </f:be.menus.actionMenu>
Selectbox with the options "Overview", "Create new Blog" and "List Posts".
Localized::
<f:be.menus.actionMenu> <f:be.menus.actionMenuItem label="{f:translate(key='overview')}" controller="Blog" action="index" /> <f:be.menus.actionMenuItem label="{f:translate(key='create_blog')}" controller="Blog" action="new" /> </f:be.menus.actionMenu>
Localized selectbox.
Table of Contents
Properties
- $tagName : string
Methods
- initializeArguments() : mixed
- Initialize arguments.
- render() : string
- Renders an ActionMenu option tag
- evaluateSelectItemState() : void
Properties
$tagName
protected
string
$tagName
= 'option'
Methods
initializeArguments()
Initialize arguments.
public
initializeArguments() : mixed
Tags
render()
Renders an ActionMenu option tag
public
render() : string
Tags
Return values
string —the rendered option tag
evaluateSelectItemState()
protected
evaluateSelectItemState(string $controller, string $action, array<string|int, mixed> $arguments) : void
Parameters
- $controller : string
- $action : string
- $arguments : array<string|int, mixed>