PersistenceManagerConfiguration

Read onlyYes
FinalYes

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

Internal

Table of Contents

Constants

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

Properties

$allowDeleteFromExtensionPaths  : bool
$allowedExtensionPaths  : array<string|int, mixed>
$allowedFileMounts  : array<string|int, mixed>
$allowSaveToExtensionPaths  : bool
$sortAscending  : bool
$sortByKeys  : array<string|int, mixed>

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<string|int, mixed> $allowedExtensionPaths = []

$allowedFileMounts

public array<string|int, mixed> $allowedFileMounts = []

$allowSaveToExtensionPaths

public bool $allowSaveToExtensionPaths = false

$sortAscending

public bool $sortAscending = true

$sortByKeys

public array<string|int, mixed> $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

Search results