Actions
Bug #94718
closedFallback for "default" page TSconfig has to be a string
Start date:
2021-08-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The value of a TSconfig entry in the TSconfig
array of ModifyLoadedPageTsConfigEvent
is the TSconfig string.
Therefore it should be possible to extend e.g. the default TSconfig (read from $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPageTSconfig']
) in this way:
$tsConfig = $event->getTsConfig(); $tsConfig['default'] .= 'my.custom.config'; $event->setTsConfig($tsConfig);
This however may fail due to the fallback, set in PageTsConfigLoader->collect
:
$tsData = [ 'default' => $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPageTSconfig'] ?? [] ];
Actions