TYPO3
7.6
|
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 | |
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.
render | ( | array | $getVars = array() , |
array | $setVars = array() |
||
) |
Renders a shortcut button as known from the TYPO3 backend
array | $getVars | list of GET variables to store. By default the current id, module and all module arguments will be stored |
array | $setVars | list of SET[] variables to store. See ::makeShortcutIcon(). Normally won't be used by Extbase modules |
Definition at line 68 of file ShortcutViewHelper.php.
References AbstractViewHelper\buildRenderChildrenClosure().
|
static |
array | $arguments | |
callable | $renderChildrenClosure | |
RenderingContextInterface | $renderingContext |
Definition at line 86 of file ShortcutViewHelper.php.
References $GLOBALS, RenderingContextInterface\getControllerContext(), and GeneralUtility\makeInstance().