PersistenceConfigurationService

final readonly class \TYPO3\CMS\Form\Domain\Configuration\PersistenceConfigurationService

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.

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
getAllowedExtensionPaths()  : string[]
Get allowed extension paths from form configuration
getAllowedFileMounts()  : string[]
Get allowed file mounts from form configuration
getAllowedPages()  : array<int, array{uid: int, title: string}>
Get allowed pages for form storage.
getFormSettings()  : array
Get all form settings
getPersistenceManagerSettings()  : array
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() : string[]

Return values

string[] —

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

getAllowedFileMounts()

Get allowed file mounts from form configuration

public getAllowedFileMounts() : string[]

Deprecated

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

Return values

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

Return values

array

getPersistenceManagerSettings()

Get persistence manager settings

public getPersistenceManagerSettings() : array

Return values

array

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