You are here

protected function ConfigManager::getModuleConfig in Remove HTTP headers 8

Returns the module config.

Gets the config from the object property if it is set. Otherwise sets and returns it.

Return value

\Drupal\Core\Config\Config The module config.

File

src/Config/ConfigManager.php, line 173

Class

ConfigManager
Manages module configuration.

Namespace

Drupal\remove_http_headers\Config

Code

protected function getModuleConfig() : Config {
  if (!$this->moduleConfig instanceof Config) {
    $this->moduleConfig = $this->configFactory
      ->getEditable('remove_http_headers.settings');
  }
  return $this->moduleConfig;
}