Feature #102184
closedAdd PSR-14 event to adjust cleanup:flexforms
0%
Description
Before #102181 the cleanup:flexforms
CLI task had the ability to specify depth and a pid to restrict operations to a specific range of the pagetree.
Due to conceptional changes and optimizations, this has been dropped.
To allow integrators/developers the ability to prevent updates on specific flexform contents, a PSR-14 event should be introduced. That event should contain the cleaned-up XML, the record array, and a boolean flag that can be set to "false" so that the update action can be prevented.
Alternatively, the event could also adjust the cleaned XML. The old XML can be accessed through the ->getRecord()[$fieldName]
method to perform comparisons. Also ->getRecord()
can be checked to see if specific PID/CType or other conditions are met.
Preventing updates could be required by integrators/developers, because parts of the page tree might be allowed to contain outdate FlexForm values (i.e. due to CTypes getting switched around, or external updates).