FilesProcessor implements DataProcessorInterface
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.
Table of Contents
Interfaces
- DataProcessorInterface
- Interface for data processor classes processing data from ContentObjectRenderer, used e.g. with the FLUIDTEMPLATE content object
Methods
- process() : array<string|int, mixed>
- Process data of a record to resolve File objects to the view
Methods
process()
Process data of a record to resolve File objects to the view
public
process(ContentObjectRenderer $cObj, array<string|int, mixed> $contentObjectConfiguration, array<string|int, mixed> $processorConfiguration, array<string|int, mixed> $processedData) : array<string|int, mixed>
Parameters
- $cObj : ContentObjectRenderer
-
The data of the content element or page
- $contentObjectConfiguration : array<string|int, mixed>
-
The configuration of Content Object
- $processorConfiguration : array<string|int, mixed>
-
The configuration of this processor
- $processedData : array<string|int, mixed>
-
Key/value store of processed data (e.g. to be passed to a Fluid View)
Return values
array<string|int, mixed> —the processed data as key/value store