2 namespace TYPO3\CMS\Fluid\ViewHelpers\Be\Buttons;
68 public function render(array $getVars = array(), array $setVars = array())
70 return static::renderStatic(
72 'getVars' => $getVars,
76 $this->renderingContext
88 $getVars = $arguments[
'getVars'];
89 $setVars = $arguments[
'setVars'];
91 $mayMakeShortcut =
$GLOBALS[
'BE_USER']->mayMakeShortcut();
94 if ($mayMakeShortcut) {
97 $extensionName = $currentRequest->getControllerExtensionName();
98 $moduleName = $currentRequest->getPluginName();
99 if (count($getVars) === 0) {
100 $modulePrefix = strtolower(
'tx_' . $extensionName .
'_' . $moduleName);
101 $getVars = array(
'id',
'M', $modulePrefix);
103 $getList = implode(
',', $getVars);
104 $setList = implode(
',', $setVars);
105 return $doc->makeShortcutIcon($getList, $setList, $moduleName);