DataStructureIdentifierListener

Event listener extending the flex form handling for tt_content form elements (CType: form_formframework):

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

Scope: backend

Internal

Table of Contents

Methods

modifyDataStructure()  : void
Adds the list of existing form definitions to the form selection drop down and adds sheets to override finisher settings if requested.
modifyDataStructureIdentifier()  : void
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.
addInvalidFrameworkConfigurationFlashMessage()  : void
addSelectedPersistenceIdentifier()  : array<string|int, mixed>
buildFlexformSheetIdentifier()  : string
getAdditionalFinisherSheets()  : array<string|int, mixed>
Returns additional flexform sheets with finisher fields
getLanguageService()  : LanguageService
initializeNewSheetArray()  : array<string|int, mixed>
Boilerplate XML array of a new sheet
translateFinisherDefinitionByIdentifier()  : array<string|int, mixed>

Methods

addInvalidFrameworkConfigurationFlashMessage()

protected addInvalidFrameworkConfigurationFlashMessage(Exception $e[, string $identifier = '' ]) : void
Parameters
$e : Exception
$identifier : string = ''

addSelectedPersistenceIdentifier()

protected addSelectedPersistenceIdentifier(string $persistenceIdentifier, array<string|int, mixed> $dataStructure) : array<string|int, mixed>
Parameters
$persistenceIdentifier : string
$dataStructure : array<string|int, mixed>
Return values
array<string|int, mixed>

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<string|int, mixed> $formDefinition) : array<string|int, mixed>
Parameters
$persistenceIdentifier : string

Current persistence identifier

$formDefinition : array<string|int, mixed>

The form definition

Return values
array<string|int, mixed>

initializeNewSheetArray()

Boilerplate XML array of a new sheet

protected initializeNewSheetArray(string $sheetIdentifier, string $finisherName) : array<string|int, mixed>
Parameters
$sheetIdentifier : string
$finisherName : string
Tags
throws
InvalidArgumentException
Return values
array<string|int, mixed>

translateFinisherDefinitionByIdentifier()

protected translateFinisherDefinitionByIdentifier(string $finisherIdentifier, array<string|int, mixed> $finishersDefinition, array<string|int, mixed> $prototypeConfiguration) : array<string|int, mixed>
Parameters
$finisherIdentifier : string
$finishersDefinition : array<string|int, mixed>
$prototypeConfiguration : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results