![]() |
TYPO3
7.6
|
Protected Attributes | |
$tagName = 'option' | |
![]() | |
$tag = null | |
$tagName = 'div' | |
![]() | |
$arguments | |
$templateVariableContainer | |
$controllerContext | |
$renderingContext | |
$renderChildrenClosure = null | |
$viewHelperVariableContainer | |
$objectManager | |
$escapingInterceptorEnabled = true | |
Additional Inherited Members | |
![]() | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
![]() | |
registerTagAttribute ($name, $type, $description, $required=false, $default=null) | |
registerUniversalTagAttributes () | |
View helper which returns an option tag. This view helper only works in conjunction with Note: This view helper is experimental!
= Examples =
<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>
<output> Selectbox with the options "Overview", "Create new Blog" and "List Posts" </output>
<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>
<output> localized selectbox <output>
Definition at line 51 of file ActionMenuItemViewHelper.php.
render | ( | $label, | |
$controller, | |||
$action, | |||
array | $arguments = array() |
||
) |
Renders an ActionMenu option tag
string | $label | label of the option tag |
string | $controller | controller to be associated with this ActionMenuItem |
string | $action | the action to be associated with this ActionMenuItem |
array | $arguments | additional controller arguments to be passed to the action when this ActionMenuItem is selected |
Definition at line 68 of file ActionMenuItemViewHelper.php.
References AbstractViewHelper\$arguments.
|
protected |
Definition at line 56 of file ActionMenuItemViewHelper.php.