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

History 318

  1. Tobias Wojtylak commented and changed status Under Review Resolved done 90 % 100 % <span data-processor="relativetime" data-value="2026-03-13T12:50:08+00:00" > 03/13/26, 12:50 </span>

    Applied in changeset commit:c256d27796067042b1a3013270f7809615846b9c.