‪TYPO3CMS  10.4
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 
3 defined('TYPO3_MODE') or die();
4 
5 // Rebuild cache in DataHandler on changing / inserting / adding redirect records
6 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['redirects'] = \‪TYPO3\CMS\Redirects\Hooks\DataHandlerCacheFlushingHook::class . '->rebuildRedirectCacheIfNecessary';
7 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['redirects'] = \‪TYPO3\CMS\Redirects\Hooks\DataHandlerSlugUpdateHook::class;
8 
9 // Inject sys_domains into valuepicker form
10 ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord']
11 [\‪TYPO3\CMS\Redirects\FormDataProvider\ValuePickerItemDataProvider::class] = [
12  'depends' => [
13  \‪TYPO3\CMS\Backend\Form\FormDataProvider\TcaInputPlaceholders::class,
14  ],
15 ];
16 
17 \‪TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\‪TYPO3\CMS\Core\Imaging\IconRegistry::class)
18  ->registerIcon(
19  'mimetypes-x-sys_redirect',
20  \‪TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
21  ['source' => 'EXT:redirects/Resources/Public/Icons/mimetypes-x-sys_redirect.svg']
22  );
23 
24 // Add validation call for form field source_host and source_path
25 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][\‪TYPO3\CMS\Redirects\Evaluation\SourceHost::class] = '';
26 
27 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][]
28  = \‪TYPO3\CMS\Redirects\Hooks\BackendControllerHook::class . '->registerClientSideEventHandler';
29 
30 ‪if (\‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('reports')) {
31  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['LLL:EXT:redirects/Resources/Private/Language/locallang_reports.xlf:statusProvider'][] = \TYPO3\CMS\Redirects\Report\Status\RedirectStatus::class;
32 }
‪TYPO3
‪if
‪if(PHP_SAPI !=='cli')
Definition: splitAcceptanceTests.php:33
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5