‪TYPO3CMS  ‪main
TYPO3\CMS\Core\DataHandling\ItemProcessingService Class Reference

Public Member Functions

 __construct (protected readonly SiteFinder $siteFinder)
 
array getProcessingItems ($table, $realPid, $field, $row, $tcaConfig, $selectedItems)
 

Protected Member Functions

 resolveSite (int $pageId)
 
 getLanguageService ()
 

Detailed Description

Provides services around item processing

Definition at line 33 of file ItemProcessingService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\DataHandling\ItemProcessingService::__construct ( protected readonly SiteFinder  $siteFinder)

Definition at line 35 of file ItemProcessingService.php.

Member Function Documentation

◆ getLanguageService()

TYPO3\CMS\Core\DataHandling\ItemProcessingService::getLanguageService ( )
protected

◆ getProcessingItems()

array TYPO3\CMS\Core\DataHandling\ItemProcessingService::getProcessingItems (   $table,
  $realPid,
  $field,
  $row,
  $tcaConfig,
  $selectedItems 
)

Executes an itemsProcFunc if defined in TCA and returns the combined result (predefined + processed items)

Parameters
string$table
int$realPid‪Record pid. This is the pid of the record.
string$field
array$row
array$tcaConfig‪The TCA configuration of $field
array$selectedItems‪The items already defined in the TCA configuration
Returns
‪array The processed items (including the predefined items)

Definition at line 50 of file ItemProcessingService.php.

References $GLOBALS, TYPO3\CMS\Core\Schema\Struct\SelectItem\fromTcaItemArray(), TYPO3\CMS\Core\DataHandling\ItemProcessingService\getLanguageService(), and TYPO3\CMS\Core\DataHandling\ItemProcessingService\resolveSite().

◆ resolveSite()

TYPO3\CMS\Core\DataHandling\ItemProcessingService::resolveSite ( int  $pageId)
protected