ItemProcessingService
Read onlyYes
Provides services around item processing
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
- $flashMessageService : FlashMessageService
- $siteFinder : SiteFinder
- $tcaSchemaFactory : TcaSchemaFactory
Methods
- __construct() : mixed
- getProcessingItems() : array<string|int, mixed>
- Executes an itemsProcFunc or itemsProcessors if defined in TCA and returns the combined result (predefined + processed items)
- processItems() : SelectItemCollection
- resolveSite() : SiteInterface
- getLanguageService() : LanguageService
Properties
$flashMessageService
protected
FlashMessageService
$flashMessageService
$siteFinder
protected
SiteFinder
$siteFinder
$tcaSchemaFactory
protected
TcaSchemaFactory
$tcaSchemaFactory
Methods
__construct()
public
__construct(SiteFinder $siteFinder, TcaSchemaFactory $tcaSchemaFactory, FlashMessageService $flashMessageService) : mixed
Parameters
- $siteFinder : SiteFinder
- $tcaSchemaFactory : TcaSchemaFactory
- $flashMessageService : FlashMessageService
getProcessingItems()
Executes an itemsProcFunc or itemsProcessors if defined in TCA and returns the combined result (predefined + processed items)
public
getProcessingItems(string $table, int $realPid, string $field, array<string|int, mixed> $row, array<string|int, mixed> $tcaConfig, array<string|int, mixed> $selectedItems) : array<string|int, mixed>
Parameters
- $table : string
- $realPid : int
-
Record pid. This is the pid of the record.
- $field : string
- $row : array<string|int, mixed>
- $tcaConfig : array<string|int, mixed>
-
The TCA configuration of $field
- $selectedItems : array<string|int, mixed>
-
The items already defined in the TCA configuration
Tags
Return values
array<string|int, mixed> —The processed items (including the predefined items)
processItems()
public
processItems(SelectItemCollection $items, ItemsProcessorContext $context) : SelectItemCollection
Parameters
- $items : SelectItemCollection
- $context : ItemsProcessorContext
Return values
SelectItemCollectionresolveSite()
public
resolveSite(int $pageId) : SiteInterface
Parameters
- $pageId : int
Return values
SiteInterfacegetLanguageService()
protected
getLanguageService() : LanguageService