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.

Table of Contents

Interfaces

FormDataGroupInterface
Interface must be implemented by form data group classes.

Properties

$providerList  : array<string|int, FormDataProviderInterface>

Methods

compile()  : array<string|int, mixed>
Compile form data
setProviderList()  : mixed
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
throws
UnexpectedValueException
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) : mixed

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

Tags
see
DependencyOrderingService

        
On this page

Search results