ShortcutButtonViewHelper

class \TYPO3\CMS\Backend\ViewHelpers\ModuleLayout\Button\ShortcutButtonViewHelper

Extends
AbstractButtonViewHelper

A ViewHelper for adding a shortcut button to the doc header area.

Deprecated

since TYPO3 v11.3, will be removed in TYPO3 v12.0. Deprecation logged AbstractButtonViewHelper.

It must be a child of :ref:<be:moduleLayout> <typo3-backend-modulelayout>.

The 'arguments' argument should contain key/value pairs of all arguments relevant for the specific view.

Examples

Default::

be:moduleLayout <be:moduleLayout.button.shortcutButton displayName="Shortcut label" arguments="{parameter: '{someValue}'}"/> </be:moduleLayout>

Table of Contents

Methods

initializeArguments()  : void
Initialize arguments.
renderStatic()  : void
createButton()  : ButtonInterface
getRouteIdentifierForModuleName()  : string
Tries to fetch the route identifier for a given module name

Methods

initializeArguments()

Initialize arguments.

public initializeArguments() : void

Tags

throws
Exception

renderStatic()

public static renderStatic(array $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : void

Parameters

$arguments : array
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

Tags

throws
InvalidArgumentException
throws
Exception

getRouteIdentifierForModuleName()

Tries to fetch the route identifier for a given module name

protected static getRouteIdentifierForModuleName(string $moduleName) : string

Parameters

$moduleName : string

Return values

string
On this page