‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\DataProcessing\FilesProcessor Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\DataProcessing\FilesProcessor:

Public Member Functions

array process (ContentObjectRenderer $cObj, array $contentObjectConfiguration, array $processorConfiguration, array $processedData)

Detailed Description

This data processor can be used for processing data for record which contain relations to sys_file records (e.g. sys_file_reference records) or for fetching files directly from UIDs or from folders or collections.

Example TypoScript configuration:

10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor 10 { references.fieldName = image collections = 13,15 as = myfiles }

whereas "myfiles" can further be used as a variable {myfiles} inside a Fluid template for iteration.

Definition at line 40 of file FilesProcessor.php.

Member Function Documentation

◆ process()

array TYPO3\CMS\Frontend\DataProcessing\FilesProcessor::process ( ContentObjectRenderer  $cObj,
array  $contentObjectConfiguration,
array  $processorConfiguration,
array  $processedData 

Process data of a record to resolve File objects to the view

ContentObjectRenderer$cObj‪The data of the content element or page
array$contentObjectConfiguration‪The configuration of Content Object
array$processorConfiguration‪The configuration of this processor
array$processedData‪Key/value store of processed data (e.g. to be passed to a Fluid View)
‪array the processed data as key/value store

Implements TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface.

Definition at line 51 of file FilesProcessor.php.

References TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\checkIf(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getCurrentTable(), TYPO3\CMS\Core\Utility\GeneralUtility\intExplode(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrapValue(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().