Commit 2c2f28e2 authored by Jörg Kummer's avatar Jörg Kummer Committed by Benni Mack
Browse files

[DOCS] Extend migration example of deprecation 84993

Change a variable name in migration example for

Adds further migration example for getPagesTSconfig() when
retrieving a single value.

Releases: master
Resolves: #89394
Change-Id: I0180126cd531335a7775425d1f350587dd5f7be0

Tested-by: Daniel Goerz's avatarDaniel Goerz <>
Tested-by: default avatarTYPO3com <>
Tested-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
parent df8049ea
......@@ -91,10 +91,14 @@ PHP notice level warnings::
Change :php:`BackendUtility->getModTSconfig()` related calls to use :php:`BackendUtility::getPagesTSconfig($pid)` instead.
Note this method does not return the 'properties' and 'value' sub array as :php:`->getModTSconfig()` did::
// Switch an old getModTSconfig() to getPagesTSConfig():
$configArray = BackendUtility::getModTSconfig($id, 'mod.web_list');
// Switch an old getModTSconfig() to getPagesTSConfig() for array of properties:
$configArray = BackendUtility::getModTSconfig($pid, 'mod.web_list');
$configArray['properties'] = BackendUtility::getPagesTSconfig($pid)['mod.']['web_list.'] ?? [];
// Switch an old getModTSconfig() to getPagesTSConfig() for single value:
$configArray = BackendUtility::getModTSconfig($pid, 'TCEFORM.sys_dmail_group.select_categories.PAGE_TSCONFIG_IDLIST');
$configArray['value'] = BackendUtility::getPagesTSconfig($pid)['TCEFORM.']['sys_dmail_group.']['select_categories.']['PAGE_TSCONFIG_IDLIST'] ?? null;
Methods :php:`BackendUtility::unsetMenuItems()` and :php:`DataHandler->getTCEMAIN_TSconfig()` have been rarely used
and are dropped without substitution. Copy the code into consuming methods if you really need them.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment