FormDefinitionConversionService

class \TYPO3\CMS\Form\Domain\Configuration\FormDefinitionConversionService

Implements
SingletonInterface

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 and the "_formPersistenceIdentifier" marker from the form definition.
retrieveSessionToken()  : string
Retrieve the session token for a specific form persistence identifier.
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, string $formPersistenceIdentifier) : 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
$formPersistenceIdentifier : string

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 and the "_formPersistenceIdentifier" marker from the form definition.

public removeHmacData(array $formDefinition) : array

Parameters

$formDefinition : array

Return values

array

retrieveSessionToken()

Retrieve the session token for a specific form persistence identifier.

public retrieveSessionToken(string $formPersistenceIdentifier) : string

Parameters

$formPersistenceIdentifier : string

Return values

string

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, string $formPersistenceIdentifier) : mixed

Parameters

$sessionToken : string
$formPersistenceIdentifier : string
On this page