‪TYPO3CMS  ‪main
TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorResolver Class Reference

Public Member Functions

FieldGeneratorInterface resolve (array $data)
 

Protected Attributes

array $fieldValueGenerators
 

Detailed Description

Find matching field generator class instance

Definition at line 27 of file FieldGeneratorResolver.php.

Member Function Documentation

◆ resolve()

FieldGeneratorInterface TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorResolver::resolve ( array  $data)

Resolve a generator class and return its instance. Either returns an instance of FieldGeneratorInterface or throws exception

Parameters
array$data‪Criteria data
Returns
FieldGeneratorInterface
Exceptions
GeneratorNotFoundException|Exception

Definition at line 151 of file FieldGeneratorResolver.php.

Member Data Documentation

◆ $fieldValueGenerators

array TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorResolver::$fieldValueGenerators
protected

List of field generators to be called for values. Order is important: Each class is called top-bottom until one returns true on match(), then generate() is called on it.

Definition at line 35 of file FieldGeneratorResolver.php.