‪TYPO3CMS  10.4
TYPO3\CMS\Fluid\ViewHelpers\Be\Buttons\ShortcutViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Be\Buttons\ShortcutViewHelper:
TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper

Public Member Functions

 initializeArguments ()
 
string render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper
ModuleTemplate getModuleTemplate ()
 
PageRenderer getPageRenderer ()
 

Static Public Member Functions

static string renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

ViewHelper which returns shortcut button with icon.

.. note:: This ViewHelper is experimental!

Examples

Default::

<f:be.buttons.shortcut />

Shortcut button as known from the TYPO3 backend. By default the current page id, module name and all module arguments will be stored.

Explicitly set parameters to be stored in the shortcut::

<f:be.buttons.shortcut getVars="{0: 'route', 1: 'myOwnPrefix'}" setVars="{0: 'function'}" />

Shortcut button as known from the TYPO3 backend. This time only the specified GET parameters and SET[]-settings will be stored.

.. note:

Normally you won't need to set getVars & setVars parameters in Extbase modules.

Definition at line 50 of file ShortcutViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Fluid\ViewHelpers\Be\Buttons\ShortcutViewHelper::initializeArguments ( )

Initialize arguments.

Exceptions

Definition at line 63 of file ShortcutViewHelper.php.

◆ render()

string TYPO3\CMS\Fluid\ViewHelpers\Be\Buttons\ShortcutViewHelper::render ( )

Renders a shortcut button as known from the TYPO3 backend

Returns
‪string the rendered shortcut button
See also
ModuleTemplate::makeShortcutIcon()

Definition at line 76 of file ShortcutViewHelper.php.

◆ renderStatic()

static string TYPO3\CMS\Fluid\ViewHelpers\Be\Buttons\ShortcutViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static
Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string

Definition at line 91 of file ShortcutViewHelper.php.

References $GLOBALS.

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Fluid\ViewHelpers\Be\Buttons\ShortcutViewHelper::$escapeOutput = false
protected

As this ViewHelper renders HTML, the output must not be escaped.

Definition at line 56 of file ShortcutViewHelper.php.