PersistenceConfigurationService

Read onlyYes
FinalYes

Service for accessing form storage configuration (persistenceManager settings)

This service provides a clean interface to access form storage related settings from the YAML configuration without coupling every component to the configuration loading mechanism.

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
getAllowedExtensionPaths()  : array<string|int, string>
Get allowed extension paths from form configuration
getAllowedFileMounts()  : array<string|int, string>
Get allowed file mounts from form configuration
getAllowedPages()  : array<int, array{uid: int, title: string}>
Get allowed pages for form storage.
getFormSettings()  : array<string|int, mixed>
Get all form settings
getPersistenceManagerSettings()  : array<string|int, mixed>
Get persistence manager settings
getSortConfiguration()  : array{sortByKeys: string[], sortAscending: bool}
Get sort configuration for form listing
isAllowedToDeleteFromExtensionPaths()  : bool
Check if deleting from extension paths is allowed
isAllowedToSaveToExtensionPaths()  : bool
Check if saving to extension paths is allowed

Methods

getAllowedExtensionPaths()

Get allowed extension paths from form configuration

public getAllowedExtensionPaths() : array<string|int, string>
Return values
array<string|int, string>

Array of allowed extension paths (e.g., ["EXT:my_extension/Configuration/Forms/"])

getAllowedFileMounts()

Get allowed file mounts from form configuration

public getAllowedFileMounts() : array<string|int, string>
Deprecated

since v14.2, will be removed in v15.0. Use database storage instead.

Return values
array<string|int, string>

Array of allowed file mount paths (e.g., ["1:/forms/", "2:/user_forms/"])

getAllowedPages()

Get allowed pages for form storage.

public getAllowedPages() : array<int, array{uid: int, title: string}>

Forms are always stored on pid 0 (root level).

Return values
array<int, array{uid: int, title: string}>

Array of allowed page IDs

getFormSettings()

Get all form settings

public getFormSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPersistenceManagerSettings()

Get persistence manager settings

public getPersistenceManagerSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSortConfiguration()

Get sort configuration for form listing

public getSortConfiguration() : array{sortByKeys: string[], sortAscending: bool}
Return values
array{sortByKeys: string[], sortAscending: bool}

isAllowedToDeleteFromExtensionPaths()

Check if deleting from extension paths is allowed

public isAllowedToDeleteFromExtensionPaths() : bool
Return values
bool

isAllowedToSaveToExtensionPaths()

Check if saving to extension paths is allowed

public isAllowedToSaveToExtensionPaths() : bool
Return values
bool

        
On this page

Search results