OrderedProviderList implements FormDataGroupInterface

Calls provider with dependencies specified given by setter

This group is used to call a list of providers in order by specified dependencies before/depends.

Attributes
#[Autoconfigure]
$public: true
$shared: false

Table of Contents

Interfaces

FormDataGroupInterface
Interface must be implemented by form data group classes.

Properties

$providerList  : array<string|int, FormDataProviderInterface>

Methods

__construct()  : mixed
compile()  : array<string|int, mixed>
Compile form data
setProviderList()  : void
Set list of providers to be called

Properties

Methods

compile()

Compile form data

public compile(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>

Initialized result array

Tags
todo:

compile() should receive $list from setProviderList() as argument to make this service stateless and shared. It would be even better if the "static" lists from TYPO3_CONF_VARS like 'tcaDatabaseRecord' could be provided as already ordered compile time service provider: This would allow low lever caching and would avoid calls to DependencyOrderingService at runtime.

Return values
array<string|int, mixed>

Result filled with data

setProviderList()

Set list of providers to be called

public setProviderList(array<string|int, mixed> $list) : void

The dependencies of a provider are specified as:

FormDataProvider::class => [ 'before' => [AnotherFormDataProvider::class] 'depends' => [YetAnotherFormDataProvider::class] ]

Parameters
$list : array<string|int, mixed>

Given list of Provider class names


        
On this page

Search results