SiteConfigurationBeforeWriteEvent¶
New in version 12.0
The PSR-14 event
\TYPO3\
allows the modification of the site configuration array
before writing the configuration to disk.
Note
If you need to change the configuration when it is loaded, use SiteConfigurationLoadedEvent.
Example¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API¶
- class SiteConfigurationBeforeWriteEvent ¶
-
- Fully qualified name
-
\TYPO3\
CMS\ Core\ Configuration\ Event\ Site Configuration Before Write Event
Event fired before a site configuration is written to a yaml file allows dynamic modification of the site's configuration before writing.
- getSiteIdentifier ( ) ¶
-
- Returns
-
string
- getConfiguration ( ) ¶
-
- Returns
-
array
- setConfiguration ( array $configuration) ¶
-
- param $configuration
-
overwrite the configuration array of the site