public function FormOverrides::getFormOverrides in Configuration Override Warn 8
Get overrides for a form.
Parameters
\Drupal\Core\Form\FormInterface $form: The form object.
Return value
array A nested array of overridden config values, keyed by config name, and subkeyed by config value name. The subvalue is an array with 'original' and 'override' values of the respective config property.
File
- src/
FormOverrides.php, line 58
Class
- FormOverrides
- Contains logic for inspecting config forms and their overridden values.
Namespace
Drupal\config_override_warnCode
public function getFormOverrides(FormInterface $form) {
$names = $this
->getFormConfigNames($form);
$overrides = [];
foreach ($names as $name) {
$overrides = NestedArray::mergeDeep($overrides, $this
->getConfigOverrideDiffs($name));
}
return $overrides;
}