DataStructureIdentifierHook

Hooks into flex form handling of backend for tt_content form elements:

  • Adds existing forms to flex form drop down list
  • Adds finisher settings if "override finishers" is active

Scope: backend

Internal

Table of Contents

Constants

L10N_PREFIX  : mixed = 'LLL:EXT:form/Resources/Private/Language/Databa...
Localisation prefix

Methods

__construct()  : mixed
getDataStructureIdentifierPostProcess()  : array
The data structure depends on a current form selection (persistenceIdentifier) and if the field "overrideFinishers" is active. Add both to the identifier to hand these information over to parseDataStructureByIdentifierPostProcess() hook.
parseDataStructureByIdentifierPostProcess()  : array
Returns a modified flexform data array.
addInvalidFrameworkConfigurationFlashMessage()  : mixed
addSelectedPersistenceIdentifier()  : array
buildFlexformSheetIdentifier()  : string
getAdditionalFinisherSheets()  : array
Returns additional flexform sheets with finisher fields
getLanguageService()  : LanguageService
initializeNewSheetArray()  : array
Boilerplate XML array of a new sheet
translateFinisherDefinitionByIdentifier()  : array

Constants

L10N_PREFIX

Localisation prefix

public mixed L10N_PREFIX = 'LLL:EXT:form/Resources/Private/Language/Database.xlf:'

Methods

getDataStructureIdentifierPostProcess()

The data structure depends on a current form selection (persistenceIdentifier) and if the field "overrideFinishers" is active. Add both to the identifier to hand these information over to parseDataStructureByIdentifierPostProcess() hook.

public getDataStructureIdentifierPostProcess(array $fieldTca, string $tableName, string $fieldName, array $row, array $identifier) : array
Parameters
$fieldTca : array

Incoming field TCA

$tableName : string

Handled table

$fieldName : string

Handled field

$row : array

Current data row

$identifier : array

Already calculated identifier

Return values
array —

Modified identifier

parseDataStructureByIdentifierPostProcess()

Returns a modified flexform data array.

public parseDataStructureByIdentifierPostProcess(array $dataStructure, array $identifier) : array

This adds the list of existing form definitions to the form selection drop down and adds sheets to override finisher settings if requested.

Parameters
$dataStructure : array
$identifier : array
Return values
array

addInvalidFrameworkConfigurationFlashMessage()

protected addInvalidFrameworkConfigurationFlashMessage(Exception $e) : mixed
Parameters
$e : Exception

addSelectedPersistenceIdentifier()

protected addSelectedPersistenceIdentifier(string $persistenceIdentifier, array $dataStructure) : array
Parameters
$persistenceIdentifier : string
$dataStructure : array
Return values
array

buildFlexformSheetIdentifier()

protected buildFlexformSheetIdentifier(string $persistenceIdentifier, string $prototypeName, string $formIdentifier, string $finisherIdentifier) : string
Parameters
$persistenceIdentifier : string
$prototypeName : string
$formIdentifier : string
$finisherIdentifier : string
Return values
string

getAdditionalFinisherSheets()

Returns additional flexform sheets with finisher fields

protected getAdditionalFinisherSheets(string $persistenceIdentifier, array $formDefinition) : array
Parameters
$persistenceIdentifier : string

Current persistence identifier

$formDefinition : array

The form definition

Return values
array

initializeNewSheetArray()

Boilerplate XML array of a new sheet

protected initializeNewSheetArray(string $sheetIdentifier, string $finisherName) : array
Parameters
$sheetIdentifier : string
$finisherName : string
Tags
throws
InvalidArgumentException
Return values
array

translateFinisherDefinitionByIdentifier()

protected translateFinisherDefinitionByIdentifier(string $finisherIdentifier, array $finishersDefinition, array $prototypeConfiguration) : array
Parameters
$finisherIdentifier : string
$finishersDefinition : array
$prototypeConfiguration : array
Return values
array
On this page

Search results