FormDefinitionConversionService implements SingletonInterface

Internal

Table of Contents

Interfaces

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

Methods

addHmacData()  : array
Add a new value "_orig_<propertyName>" for each scalar property value within the form definition as a sibling of the property key.
migrateFinisherConfiguration()  : array
Migrate various finisher options
removeHmacData()  : array
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 $formDefinition) : array

"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
Tags
see
FormDefinitionValidationService::validateFormDefinitionProperties()
Return values
array

migrateFinisherConfiguration()

Migrate various finisher options

public migrateFinisherConfiguration(array $formDefinition) : array
Parameters
$formDefinition : array
Return values
array

removeHmacData()

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

public removeHmacData(array $formDefinition) : array
Parameters
$formDefinition : array
Return values
array

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