‪TYPO3CMS  ‪main
TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\TypeInputDynamicTextWithRecordUid Class Reference
Inheritance diagram for TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\TypeInputDynamicTextWithRecordUid:
TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\AbstractFieldGenerator TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface

Public Member Functions

bool match (array $data)
 
string generate (array $data)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\AbstractFieldGenerator
 __construct ()
 

Protected Attributes

array $matchArray
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\AbstractFieldGenerator
KauderwelschService $kauderwelschService
 
array $matchArray = array( )
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\AbstractFieldGenerator
bool checkMatchArray (array $data, array $matchArray)
 

Detailed Description

Generate data for type=input fields "lipsum 23" for some special children

Definition at line 28 of file TypeInputDynamicTextWithRecordUid.php.

Member Function Documentation

◆ generate()

string TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\TypeInputDynamicTextWithRecordUid::generate ( array  $data)

To determine different children in an easy way, this input field generates a string combined with the record uid

Parameters
array$data
Returns
‪string

Implements TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface.

Definition at line 74 of file TypeInputDynamicTextWithRecordUid.php.

◆ match()

bool TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\TypeInputDynamicTextWithRecordUid::match ( array  $data)

Some inline scenarios need multiple children table rows. To distinct those rows from each other, the uid of the row is added.

This match() is hardcoded for some specific child tables only.

Parameters
array$data
Returns
‪bool

Reimplemented from TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\AbstractFieldGenerator.

Definition at line 49 of file TypeInputDynamicTextWithRecordUid.php.

Member Data Documentation

◆ $matchArray

array TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator\TypeInputDynamicTextWithRecordUid::$matchArray
protected
Initial value:
= array(
'fieldConfig' => [
'config' => [
'type' => 'input',
],
],
)

General match if type=input

Definition at line 32 of file TypeInputDynamicTextWithRecordUid.php.