ConfigurationManager implements ConfigurationManagerInterface
Read onlyYes
Extend the ExtbaseConfigurationManager to read YAML configurations.
Scope: frontend / backend
Attributes
- #[AsAlias]
- \TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManagerInterface::class
- $public: true
Table of Contents
Interfaces
- ConfigurationManagerInterface
- Scope: frontend / backend
Methods
- __construct() : mixed
- getYamlConfiguration() : array<string|int, mixed>
- Load and parse YAML files which are configured within the TypoScript path plugin.tx_extensionkey.settings.yamlConfigurations
Methods
__construct()
public
__construct(YamlSource $yamlSource, FrontendInterface $cache, TypoScriptService $typoScriptService) : mixed
Parameters
- $yamlSource : YamlSource
- $cache : FrontendInterface
- $typoScriptService : TypoScriptService
getYamlConfiguration()
Load and parse YAML files which are configured within the TypoScript path plugin.tx_extensionkey.settings.yamlConfigurations
public
getYamlConfiguration(array<string|int, mixed> $typoScriptSettings, bool $isFrontend) : array<string|int, mixed>
The following steps will be done:
- Convert each singe YAML file into an array
- merge this arrays together
- resolve all declared inheritances
- remove all keys if their values are NULL
- return all configuration paths within TYPO3.CMS
- sort by array keys, if all keys within the current nesting level are numerical keys
- resolve possible TypoScript settings in FE mode
Parameters
- $typoScriptSettings : array<string|int, mixed>
- $isFrontend : bool