‪TYPO3CMS  ‪main
AbstractLinkHandler.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use TYPO3\CMS\Backend\Controller\AbstractLinkBrowserController;
27 
33 abstract class ‪AbstractLinkHandler
34 {
42  protected ‪$linkAttributes = ['target', 'title', 'class', 'params', 'rel'];
43 
47  protected ‪$updateSupported = true;
48 
52  protected ‪$linkBrowser;
53 
57  protected ‪$iconFactory;
58 
60 
64  protected ‪$pageRenderer;
65 
66  public function ‪__construct() {}
67 
68  public function ‪initialize(AbstractLinkBrowserController ‪$linkBrowser, ‪$identifier, array $configuration)
69  {
70  $this->linkBrowser = ‪$linkBrowser;
71  $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
72  $this->pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
73  }
74 
78  public function ‪getLinkAttributes()
79  {
81  }
82 
87  public function ‪modifyLinkAttributes(array $fieldDefinitions)
88  {
89  return $fieldDefinitions;
90  }
91 
99  public function ‪isUpdateSupported()
100  {
102  }
103 
105  {
106  return ‪$GLOBALS['BE_USER'];
107  }
108 
110  {
111  return ‪$GLOBALS['LANG'];
112  }
113 
114  public function ‪setView(‪ViewInterface ‪$view): void
115  {
116  $this->view = ‪$view;
117  }
118 }
‪TYPO3\CMS\Core\View\ViewInterface
Definition: ViewInterface.php:24
‪TYPO3\CMS\Core\Imaging\IconFactory
Definition: IconFactory.php:34
‪TYPO3\CMS\Core\Page\PageRenderer
Definition: PageRenderer.php:44
‪TYPO3\CMS\Core\Authentication\BackendUserAuthentication
Definition: BackendUserAuthentication.php:62
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:46
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:52
‪TYPO3\CMS\Webhooks\Message\$identifier
‪identifier readonly string $identifier
Definition: FileAddedMessage.php:37