FormDefinitionMigrationService implements SingletonInterface
Service for migrating form definitions to newer formats.
This service handles automatic migrations of form definitions when they are loaded, ensuring backward compatibility with older form configurations.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Methods
- migrate() : array<string|int, mixed>
- Apply all necessary migrations to a form definition.
Methods
migrate()
Apply all necessary migrations to a form definition.
public
migrate(array<string|int, mixed> $formDefinition[, string $persistenceIdentifier = '' ]) : array<string|int, mixed>
This method is called automatically when a form definition is loaded and applies all registered migrations in sequence.
Parameters
- $formDefinition : array<string|int, mixed>
- $persistenceIdentifier : string = ''