FormDefinitionConversionService implements SingletonInterface

Internal

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Methods

addHmacData()  : array<string|int, mixed>
Add a new value "_orig_<propertyName>" for each scalar property value within the form definition as a sibling of the property key.
migrateFinisherConfiguration()  : array<string|int, mixed>
Migrate various finisher options
removeHmacData()  : array<string|int, mixed>
Remove the "_orig_<propertyName>" values from the form definition.
generateSessionToken()  : string
Generates the random token which is used in the hash for the form tokens.
getBackendUser()  : BackendUserAuthentication
persistSessionToken()  : mixed

Methods

addHmacData()

Add a new value "_orig_<propertyName>" for each scalar property value within the form definition as a sibling of the property key.

public addHmacData(array<string|int, mixed> $formDefinition) : array<string|int, mixed>

"orig<propertyName>" is an array which contains the property value and a hmac hash for the property value. "orig<propertyName>" will be used to validate the form definition on saving.

Parameters
$formDefinition : array<string|int, mixed>
Tags
see
FormDefinitionValidationService::validateFormDefinitionProperties()
Return values
array<string|int, mixed>

migrateFinisherConfiguration()

Migrate various finisher options

public migrateFinisherConfiguration(array<string|int, mixed> $formDefinition) : array<string|int, mixed>
Parameters
$formDefinition : array<string|int, mixed>
Return values
array<string|int, mixed>

removeHmacData()

Remove the "_orig_<propertyName>" values from the form definition.

public removeHmacData(array<string|int, mixed> $formDefinition) : array<string|int, mixed>
Parameters
$formDefinition : array<string|int, mixed>
Return values
array<string|int, mixed>

generateSessionToken()

Generates the random token which is used in the hash for the form tokens.

protected generateSessionToken() : string
Return values
string

persistSessionToken()

protected persistSessionToken(string $sessionToken) : mixed
Parameters
$sessionToken : string

        
On this page

Search results