Breaking: #97201 - Removed hook for new content element wizard¶
See forge#97201
Description¶
The hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook']
has been removed in favor of a new PSR-14 event \TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent
.
Additionally, the params
property of a wizard item has been
removed, since it just duplicated the default values, configured with
tt_content_defValues
and therefore previously required extension
authors to provide the same information twice in two different formats.
Note
The public methods getPageInfo()
, getColPos()
,
getSysLanguage()
and getUidPid()
have been removed
from the internal NewContentElementController
class, since
they were only added for the use in the now removed hook. This
information is now directly available in the new PSR-14 event.
Impact¶
Any hook implementation registered is not executed anymore in TYPO3 v12.0+.
The params
property on a wizard item is no longer evaluated.
Affected Installations¶
TYPO3 installations with custom extensions using this hook.
TYPO3 installations setting the params
property on a wizard item.
Migration¶
The hook is removed without deprecation in order to allow extensions to work with TYPO3 v11 (using the hook) and v12+ (using the new event).
Use the PSR-14 event to allow greater influence in the functionality.
Migrate the params
property to tt_content_defValues
or just
remove params
in case the information had already been configured
for both properties.