PropertyMappingConfiguration implements AfterFormStateInitializedInterface

Scope: frontend

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Interfaces

AfterFormStateInitializedInterface
Event is triggered with current form state and form session, which is not the case with e.g. `afterBuildingFinished`. Can be used to further enrich components with runtime state.

Methods

afterFormStateInitialized()  : void
adjustPropertyMappingForFileUploadsAtRuntime()  : void
If the form runtime is able to process form submissions (determined by $formRuntime->canProcessFormSubmission()) then a 'form session' is available.

Methods

afterFormStateInitialized()

public afterFormStateInitialized(FormRuntime $formRuntime) : void
Parameters
$formRuntime : FormRuntime

holding current form state and static form definition

adjustPropertyMappingForFileUploadsAtRuntime()

If the form runtime is able to process form submissions (determined by $formRuntime->canProcessFormSubmission()) then a 'form session' is available.

protected adjustPropertyMappingForFileUploadsAtRuntime(FormRuntime $formRuntime, RenderableInterface $renderable) : void

This form session identifier will be used to deriving storage sub-folders for the file uploads. This is done by setting UploadedFileReferenceConverter::CONFIGURATION_UPLOAD_SEED type converter option.

Parameters
$formRuntime : FormRuntime
$renderable : RenderableInterface

        
On this page

Search results