Deprecation: #101799 - ExtensionManagementUtility::addPageTSConfig()

See forge#101799

Description

Method TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig() has been marked as deprecated in TYPO3 v13 and will be removed with TYPO3 v14.

The global configuration option $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPageTSconfig'] has been marked as deprecated in TYPO3 v13, will be ignored and removed from instance configuration files as silent upgrade with TYPO3 v14.

Impact

Setting default Page TSconfig using ExtensionManagementUtility::addPageTSConfig() in ext_localconf.php files has been superseded by Automatic inclusion of Page TSconfig of extensions with TYPO3 v12 already. The old way has been deprecated now, extensions should switch to the new functionality by placing default Page TSconfig in Configuration/page.tsconfig files.

Affected installations

Instances with extensions using ExtensionManagementUtility::addPageTSConfig() or directly extending $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPageTSconfig'] are affected: Using ExtensionManagementUtility::addPageTSConfig() triggers a deprecation level log message. The extension scanner will find usages of ExtensionManagementUtility::addPageTSConfig() as strong match.

Migration

Add default Page TSconfig to an Configuration/page.tsconfig file within an extension and remove calls to ExtensionManagementUtility::addPageTSConfig(). Placing default Page TSconfig in Configuration/page.tsconfig files is available since TYPO3 v12, extensions aiming for v12 and v13 compatibility can simply switch over to the new way.