AfterFlexFormDataStructureIdentifierInitializedEvent

final class \TYPO3\CMS\Core\Configuration\Event\AfterFlexFormDataStructureIdentifierInitializedEvent

Listeners to this event are able to modify or enhance the data structure identifier, which is used for a given TCA flex field.

This event can be used to add additional data to an identifier. Be careful here, especially if stuff from the source record like uid or pid is added! This may easily lead to issues with data handler details like copy or move records, localization and version overlays. Test this very well! Multiple listeners may add information to the same identifier here - take care to namespace array keys. Information added here can be later used in the data structure related PSR-14 Events (BeforeFlexFormDataStructureParsedEvent and AfterFlexFormDataStructureParsedEvent) again.

See the note on FlexFormTools regarding the schema of $dataStructure.

Table of Contents

Methods

__construct()  : mixed
getFieldName()  : string
getFieldTca()  : array
Returns the full TCA of the currently handled field, having `type=flex` set.
getIdentifier()  : array
Returns the initialized data structure identifier, which has either been defined by an event listener or set to the default by the `FlexFormTools` component.
getRow()  : array
Returns the whole database row of the current record.
getTableName()  : string
setIdentifier()  : void
Allows to modify or completely replace the initialized data structure identifier.

Methods

__construct()

public __construct(array $fieldTca, string $tableName, string $fieldName, array $row, array $identifier) : mixed

Parameters

$fieldTca : array

Full TCA of the field in question that has type=flex set

$tableName : string

The table name of the TCA field

$fieldName : string

The field name

$row : array

The data row

$identifier : array

The data structure identifier (set by event listener of the default)

getFieldName()

public getFieldName() : string

Return values

string

getFieldTca()

Returns the full TCA of the currently handled field, having `type=flex` set.

public getFieldTca() : array

Return values

array

getIdentifier()

Returns the initialized data structure identifier, which has either been defined by an event listener or set to the default by the `FlexFormTools` component.

public getIdentifier() : array

Return values

array

getRow()

Returns the whole database row of the current record.

public getRow() : array

Return values

array

getTableName()

public getTableName() : string

Return values

string

setIdentifier()

Allows to modify or completely replace the initialized data structure identifier.

public setIdentifier(array $identifier) : void

Parameters

$identifier : array
On this page