‪TYPO3CMS  9.5
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 // Rebuild cache in DataHandler on changing / inserting / adding redirect records
5 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['redirects'] = \‪TYPO3\CMS\Redirects\Hooks\DataHandlerCacheFlushingHook::class . '->rebuildRedirectCacheIfNecessary';
6 
7 // Inject sys_domains into valuepicker form
8 ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord']
9 [\‪TYPO3\CMS\Redirects\FormDataProvider\ValuePickerItemDataProvider::class] = [
10  'depends' => [
11  \‪TYPO3\CMS\Backend\Form\FormDataProvider\TcaInputPlaceholders::class,
12  ],
13 ];
14 
15 \‪TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\‪TYPO3\CMS\Core\Imaging\IconRegistry::class)
16  ->registerIcon(
17  'mimetypes-x-sys_redirect',
18  \‪TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
19  ['source' => 'EXT:redirects/Resources/Public/Icons/mimetypes-x-sys_redirect.svg']
20  );
21 
22 // Add validation call for form field source_host and source_path
23 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][\‪TYPO3\CMS\Redirects\Evaluation\SourceHost::class] = '';
‪TYPO3
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5