Issue Task Closed

#109164Refactor TCA Field Items Filtering into Dedicated Service

Tobias Wojtylak 03/05/26, 11:11 updated 03/31/26, 08:09

Description

Description:
Currently, the logic for filtering and manipulating TCA select items is duplicated in multiple places:
  • TcaSelectItems / AbstractItemProvider
  • NewMultiplePagesController

This duplication makes maintenance and reuse difficult, which is also important for the page wizard.

*Goal:*
Create a dedicated service class, e.g., FieldItemsFilterService.
Consolidate all item filtering and modification methods (removeItemsByUserStorageRestriction, removeItemsByKeepItemsPageTsConfig, addItemsFromPageTsConfig, removeItemsByUserLanguageFieldRestriction, removeItemsByUserAuthMode, removeItemsByDoktypeUserRestriction).
Track removed items via a method like getRemovedItems().
Replace all existing logic in TcaSelectItems, AbstractItemProvider, and NewMultiplePagesController to use the new service.

Reviews 2