By tedbow on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.5.x
Introduced in version:
8.5.0
Issue links:
Description:
The new method \Drupal\Core\Config\Config::hasOverrides() determines if the configuration object is overridden.
If system.site:name is overridden in settings.php:
\Drupal::config('system.site')->hasOverrides(); // returns TRUE
\Drupal::config('system.site')->hasOverrides('name'); // returns TRUE
\Drupal::config('system.site')->hasOverrides('mail'); // returns FALSE
Impacts:
Module developers