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
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
__construct()
public
__construct() : mixed
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
arrayaddInvalidFrameworkConfigurationFlashMessage()
protected
addInvalidFrameworkConfigurationFlashMessage(Exception $e) : mixed
Parameters
- $e : Exception
addSelectedPersistenceIdentifier()
protected
addSelectedPersistenceIdentifier(string $persistenceIdentifier, array $dataStructure) : array
Parameters
- $persistenceIdentifier : string
- $dataStructure : array
Return values
arraybuildFlexformSheetIdentifier()
protected
buildFlexformSheetIdentifier(string $persistenceIdentifier, string $prototypeName, string $formIdentifier, string $finisherIdentifier) : string
Parameters
- $persistenceIdentifier : string
- $prototypeName : string
- $formIdentifier : string
- $finisherIdentifier : string
Return values
stringgetAdditionalFinisherSheets()
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
arraygetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServiceinitializeNewSheetArray()
Boilerplate XML array of a new sheet
protected
initializeNewSheetArray(string $sheetIdentifier, string $finisherName) : array
Parameters
- $sheetIdentifier : string
- $finisherName : string
Tags
Return values
arraytranslateFinisherDefinitionByIdentifier()
protected
translateFinisherDefinitionByIdentifier(string $finisherIdentifier, array $finishersDefinition, array $prototypeConfiguration) : array
Parameters
- $finisherIdentifier : string
- $finishersDefinition : array
- $prototypeConfiguration : array