TYPO3  7.6
Public Member Functions | Static Public Member Functions | List of all members
ShortcutViewHelper Class Reference
Inheritance diagram for ShortcutViewHelper:
AbstractBackendViewHelper CompilableInterface AbstractViewHelper

Public Member Functions

 render (array $getVars=array(), array $setVars=array())
 
- Public Member Functions inherited from CompilableInterface
 compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode,\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode,\TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler)
 

Static Public Member Functions

static renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 
- Static Public Member Functions inherited from CompilableInterface
static renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 registerArgument ($name, $type, $description, $required=false, $defaultValue=null)
 
 overrideArgument ($name, $type, $description, $required=false, $defaultValue=null)
 
 callRenderMethod ()
 
 getLogger ()
 
 buildRenderChildrenClosure ()
 
 hasArgument ($argumentName)
 
- Protected Attributes inherited from AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = null
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = true
 

Detailed Description

View helper which returns shortcut button with icon Note: This view helper is experimental!

= Examples =

<f:be.buttons.shortcut /> <output> Shortcut button as known from the TYPO3 backend. By default the current page id, module name and all module arguments will be stored </output>

<f:be.buttons.shortcut getVars="{0: 'M', 1: 'myOwnPrefix'}" setVars="{0: 'function'}" /> <output> 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 </output>

Definition at line 54 of file ShortcutViewHelper.php.

Member Function Documentation

render ( array  $getVars = array(),
array  $setVars = array() 
)

Renders a shortcut button as known from the TYPO3 backend

Parameters
array$getVarslist of GET variables to store. By default the current id, module and all module arguments will be stored
array$setVarslist of SET[] variables to store. See ::makeShortcutIcon(). Normally won't be used by Extbase modules
Returns
string the rendered shortcut button
See Also
::makeShortcutIcon()

Definition at line 68 of file ShortcutViewHelper.php.

References AbstractViewHelper\buildRenderChildrenClosure().

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

Definition at line 86 of file ShortcutViewHelper.php.

References $GLOBALS, RenderingContextInterface\getControllerContext(), and GeneralUtility\makeInstance().