/** * Construct to initialize class variables. */ public function __construct() { parent::__construct(); $this->localizationController = GeneralUtility::makeInstance(LocalizationController::class); $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class); $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); $pageRenderer->addInlineLanguageLabelFile('EXT:backend/Resources/Private/Language/locallang_layout.xlf'); $pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Tooltip'); $pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Localization'); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class); }