Commit f6109e05 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Oliver Bartsch
Browse files

[!!!][TASK] Remove legacy hook for new content element wizard

The hook "$GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses']"
is now removed.

The newer alternative
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook']
should be used instead.

Resolves: #96189
Related: #95343
Releases: main
Change-Id: I04d839b9c09d5737d00deeab7184f92486a599df
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72449


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent f13ef05c
......@@ -336,22 +336,6 @@ class NewContentElementController
*/
protected function getAppendWizards(array $wizardElements): array
{
// @deprecated will be removed in TYPO3 v12.0.
$classes = $GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses'] ?? [];
if (is_array($classes)) {
if (!empty($classes)) {
trigger_error('The hook $TBE_MODULES_EXT[xMOD_db_new_content_el][addElClasses] will be removed in TYPO3 v12.0. Use $GLOBALS[TYPO3_CONF_VARS][SC_OPTIONS][cms][db_new_content_el][wizardItemsHook] instead.', E_USER_DEPRECATED);
}
foreach ($classes as $class => $path) {
if (!class_exists($class) && file_exists($path)) {
require_once $path;
}
$modObj = GeneralUtility::makeInstance($class);
if (method_exists($modObj, 'proc')) {
$wizardElements = $modObj->proc($wizardElements);
}
}
}
$returnElements = [];
foreach ($wizardElements as $key => $wizardItem) {
preg_match('/^[a-zA-Z0-9]+_/', $key, $group);
......
......@@ -171,6 +171,7 @@ The following hooks have been removed:
- :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/browse_links.php']['browserRendering']`
- :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions']`
- :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']`
- :php:`$GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses']`
The following single field configurations have been removed from TCA:
......
......@@ -544,6 +544,7 @@ return [
'$GLOBALS[\'TBE_MODULES_EXT\'][\'xMOD_db_new_content_el\'][\'addElClasses\']' => [
'restFiles' => [
'Deprecation-95343-LegacyHookForNewContentElementWizard.rst',
'Breaking-96107-DeprecatedFunctionalityRemoved.rst',
],
],
'$GLOBALS[\'TYPO3_CONF_VARS\'][\'BE\'][\'toolbarItems\']' => [
......
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