SettingsDiff
final readonly class \
Internal
Table of Contents
Properties
- $changes : array
- $deletions : array
- $settings : array
Methods
- __construct() : mixed
- asArray() : array
- create() : self
- Calculate a new settings tree for the given $targetSettings
Properties
$changes
public
array
$changes
$deletions
public
array
$deletions
$settings
public
array
$settings
Methods
__construct()
public
__construct(array $settings, string[] $changes, string[] $deletions) : mixed
Parameters
- $settings : array
- $changes : string[]
- $deletions : string[]
asArray()
public
asArray() : array
Return values
arraycreate()
Calculate a new settings tree for the given $targetSettings
public
static create(array $currentSettings, SettingsInterface $targetSettings[, SettingsInterface $defaultSettings = null ]) : self
Settings that have the same value as their default value are removed (tree is minified) if the list of default settings via $defaultSettings.
Parameters
- $currentSettings : array
-
Current settings In case of site settings: config/sites/…/settings.yaml
- $targetSettings : SettingsInterface
-
Target settings (values as supplied via the settings editor)
- $defaultSettings : SettingsInterface = null
-
Default settings, without local settings tree applied. In case of site settings: Combination of all settings defined in settings.definitions.yaml + setting.yaml from all selected sets combined