NewContentElementWizardHookInterface gets new parentObject
A class that implemented the NewContentElementWizardHookInterface and wants to change wizardItems.
As documented in the NewContentElementWizardHookInterface the hook object should get a parent object of class \Controller\ContentElement\NewContentElementController
Due to change https://review.typo3.org/52999/ the hook gets a parentObject of type \TYPO3\CMS\Backend\Controller\Wizard\NewContentElementWizardController instead. As property visibilities changed, this change is unfortunately breaking.
[BUGFIX] NewContentElementWizardController to NewContentElementController
NewContentElementWizardController, which has been introduced for TYPO3 v9
to render the new content element process in a dedicated modal was just a
duplicate of the existing NewContentElementController class with some
minor adjustments and code flow enhancements (names, empty checks).
- hook implementing NewContentElementWizardHookInterface would have been
called by both object instances, having different public properties -
the most common access to $parentObject->id or ~->sys_language would
have failed to to property visibility and change names
the browser was hard-coded to modal rendering, with still having the
possibility to render the old behavior e.g. in the web>list view
To overcome these flaws both mentioned classes have been merged since the
functionality was not that much different anyway. Besides that different
according object instances.
Tested-by: TYPO3com <email@example.com>
Reviewed-by: Nicole Cordes <firstname.lastname@example.org>
Tested-by: Nicole Cordes <email@example.com>
Reviewed-by: Susanne Moog <firstname.lastname@example.org>
Tested-by: Susanne Moog <email@example.com>