Project

General

Profile

Actions

Feature #102184

open

Add PSR-14 event to adjust cleanup:flexforms

Added by Garvin Hicking 9 months ago. Updated 13 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
Start date:
2023-10-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
flexform flexforms cleanup event
Complexity:
Sprint Focus:

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).


Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Task #102181: Drastically speed up `bin/typo3 cleanup:flexforms`Closed2023-10-16

Actions
Actions

Also available in: Atom PDF