By pancho on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
Introduced in version:
12.0.0
Issue links:
Description:
You may now use $config->getTypedData() to get a typed data snapshot of a configuration object.
For example, you can validate unsaved changes before saving:
$config->set('name', $site_name);
$violations = $config->getTypedData()->validate();
If your code still injects the config.typed service only to call createFromNameAndData() with $config->getName() and $config->getRawData(), you can now remove that dependency.
Impacts:
Module developers