Change record status: 
Project: 
Introduced in branch: 
8.5.x
Introduced in version: 
8.5.0
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