linkBrowser = $linkBrowser; $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class); $this->pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); } /** * @return array */ public function getLinkAttributes() { return $this->linkAttributes; } /** * @param string[] $fieldDefinitions Array of link attribute field definitions * @return string[] */ public function modifyLinkAttributes(array $fieldDefinitions) { return $fieldDefinitions; } /** * Return TRUE if the handler supports to update a link. * * This is useful for e.g. file or page links, when only attributes are changed. * * @return bool */ public function isUpdateSupported() { return $this->updateSupported; } protected function getBackendUser(): BackendUserAuthentication { return $GLOBALS['BE_USER']; } protected function getLanguageService(): LanguageService { return $GLOBALS['LANG']; } public function setView(ViewInterface $view): void { $this->view = $view; } }