You are here

public function ErrorLevelConfigOverride::loadOverrides in Error Level Permission 8

Returns config overrides.

Parameters

array $names: A list of configuration names that are being loaded.

Return value

array An array keyed by configuration name of override data. Override data contains a nested array structure of overrides.

Overrides ConfigFactoryOverrideInterface::loadOverrides

File

src/ErrorLevelConfigOverride.php, line 14

Class

ErrorLevelConfigOverride

Namespace

Drupal\errorlevelpermission

Code

public function loadOverrides($names) {
  $overrides = [];
  if (in_array('system.logging', $names)) {
    $overrides['system.logging']['error_level'] = $this
      ->errorLevel();
  }
  return $overrides;
}