ActionMenuViewHelper

final class \TYPO3\CMS\Fluid\ViewHelpers\Be\Menus\ActionMenuViewHelper

Extends
AbstractTagBasedViewHelper

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

see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-be-menus-actionmenu

Table of Contents

Properties

$tagName  : string

Methods

__construct()  : mixed
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

string

initializeArguments()

public initializeArguments() : void

render()

public render() : string

Return values

string
On this page