ShortcutButtonViewHelper extends AbstractButtonViewHelper
A ViewHelper for adding a shortcut button to the doc header area.
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
renderStatic()
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : void
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface
Tags
createButton()
protected
static createButton(ButtonBar $buttonBar, array<string|int, mixed> $arguments, RenderingContextInterface $renderingContext) : ButtonInterface
Parameters
- $buttonBar : ButtonBar
- $arguments : array<string|int, mixed>
- $renderingContext : RenderingContextInterface
Return values
ButtonInterfacegetRouteIdentifierForModuleName()
Tries to fetch the route identifier for a given module name
protected
static getRouteIdentifierForModuleName(string $moduleName) : string
Parameters
- $moduleName : string