protected function getButtons() { $buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar(); if ($this->getBackendUser()->mayMakeShortcut()) { $inData = GeneralUtility::\_GP('tx\_impexp'); $action = $inData['action'] === 'export' ? 'export' : 'import'; $shortcutName = $this->getLanguageService()->sL('LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:' . $action); $shortcutButton = $buttonBar->makeShortcutButton() ->setModuleName($this->moduleName) ->setDisplayName($shortcutName) ->setGetVariables(['tx\_impexp']); $buttonBar->addButton($shortcutButton); } // ...
{}