ActionMenuItemViewHelper extends AbstractTagBasedViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:be.menus.actionmenuitem>

FinalYes

ViewHelper which returns an option tag.

This ViewHelper only works in conjunction with :php:\TYPO3\CMS\Fluid\ViewHelpers\Be\Menus\ActionMenuViewHelper. This ViewHelper is tailored to be used only in extbase context.

.. 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>

Select box 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 select box.

Table of Contents

Properties

$tagName  : string

Methods

initializeArguments()  : void
render()  : string
evaluateSelectItemState()  : void

Properties

$tagName

protected string $tagName = 'option'

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

evaluateSelectItemState()

protected evaluateSelectItemState(string $controller, string $action, array<string|int, mixed> $arguments) : void
Parameters
$controller : string
$action : string
$arguments : array<string|int, mixed>

        
On this page

Search results