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.

Properties

$validatorResolver  : ValidatorResolver

Methods

__construct()  : mixed
afterBuildingFinished()  : mixed
This hook is called for each form element after the class TYPO3\CMS\Form\Domain\Factory\ArrayFormFactory has built the entire form.
afterFormStateInitialized()  : void
adjustPropertyMappingForFileUploadsAtRuntime()  : void
If the form runtime is able to process form submissions (determined by $formRuntime->canProcessFormSubmission()) then a 'form session' is available.
checkSaveFileMountAccess()  : bool

Properties

Methods

afterBuildingFinished()

This hook is called for each form element after the class TYPO3\CMS\Form\Domain\Factory\ArrayFormFactory has built the entire form.

public afterBuildingFinished(RenderableInterface $renderable) : mixed

It is invoked after the static form definition is ready, but without knowing about the individual state organized in FormRuntime and FormState.

Parameters
$renderable : RenderableInterface
Internal

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

checkSaveFileMountAccess()

protected checkSaveFileMountAccess(string $saveToFileMountIdentifier) : bool
Parameters
$saveToFileMountIdentifier : string
Internal
Return values
bool

        
On this page

Search results