You are here

public function HighContrastConfigOverride::loadOverrides in High contrast 8

@todo Override the right logo. See https://www.drupal.org/node/2866194

Overrides ConfigFactoryOverrideInterface::loadOverrides

File

src/HighContrastConfigOverride.php, line 51

Class

HighContrastConfigOverride
Configuration override class for high contrast.

Namespace

Drupal\high_contrast

Code

public function loadOverrides($names) {
  $overrides = [];
  if (in_array('system.theme.global', $names) && HighContrastTrait::highContrastEnabled() && ($logo = $this
    ->getHighContrastLogo())) {
    $overrides['system.theme.global']['logo']['path'] = $logo;
    $overrides['system.theme.global']['logo']['url'] = '';
    $overrides['system.theme.global']['logo']['use_default'] = FALSE;
  }
  return $overrides;
}