PersistenceManagerConfiguration

final readonly class \TYPO3\CMS\Form\Domain\DTO\FormConfiguration\PersistenceManagerConfiguration

Uses
ConfigurationValueNormalizationTrait

Typed representation of the "persistenceManager" section of the form YAML configuration.

Table of Contents

Constants

DEFAULT_SORT_BY_KEYS  : array<int, string> = ['name', 'fileUid']

Properties

$allowDeleteFromExtensionPaths  : bool
$allowedExtensionPaths  : array
$allowedFileMounts  : array
$allowSaveToExtensionPaths  : bool
$sortAscending  : bool
$sortByKeys  : array

Methods

__construct()  : mixed
fromArray()  : self
Create the DTO from the raw "persistenceManager" configuration array.

Constants

DEFAULT_SORT_BY_KEYS

public array<int, string> DEFAULT_SORT_BY_KEYS = ['name', 'fileUid']

Properties

$allowDeleteFromExtensionPaths

public bool $allowDeleteFromExtensionPaths = false

$allowedExtensionPaths

public array $allowedExtensionPaths = []

$allowedFileMounts

public array $allowedFileMounts = []

$allowSaveToExtensionPaths

public bool $allowSaveToExtensionPaths = false

$sortAscending

public bool $sortAscending = true

$sortByKeys

public array $sortByKeys = self::DEFAULT_SORT_BY_KEYS

Methods

__construct()

public __construct([bool $allowSaveToExtensionPaths = false ][, bool $allowDeleteFromExtensionPaths = false ][, array<int, string> $sortByKeys = self::DEFAULT_SORT_BY_KEYS ][, bool $sortAscending = true ][, array<int, string> $allowedExtensionPaths = [] ][, array<int, string> $allowedFileMounts = [] ]) : mixed

Parameters

$allowSaveToExtensionPaths : bool = false
$allowDeleteFromExtensionPaths : bool = false
$sortByKeys : array<int, string> = self::DEFAULT_SORT_BY_KEYS

Keys the forms are sorted by in the form manager and plugin select

$sortAscending : bool = true
$allowedExtensionPaths : array<int, string> = []

EXT: paths that contain forms shipped within extensions

$allowedFileMounts : array<int, string> = []

File mounts forms may be stored in

fromArray()

Create the DTO from the raw "persistenceManager" configuration array.

public static fromArray(array<string, mixed> $configuration) : self

Parameters

$configuration : array<string, mixed>

Return values

self
On this page