You are here

protected function NormalizedStorageComparerTrait::getConfigManager in Configuration Normalizer 8

Same name and namespace in other branches
  1. 2.0.x src/Config/NormalizedStorageComparerTrait.php \Drupal\config_normalizer\Config\NormalizedStorageComparerTrait::getConfigManager()

Gets the configuration manager service.

Return value

\Drupal\Core\Config\ConfigManagerInterface The configuration manager.

1 call to NormalizedStorageComparerTrait::getConfigManager()
NormalizedStorageComparerTrait::createStorageComparer in src/Config/NormalizedStorageComparerTrait.php
Creates and returns a storage comparer.

File

src/Config/NormalizedStorageComparerTrait.php, line 74

Class

NormalizedStorageComparerTrait
Using this trait will add a ::createStorageComparer() method to the class.

Namespace

Drupal\config_normalizer\Config

Code

protected function getConfigManager() {
  if (!$this->configManager) {
    $this->configManager = \Drupal::service('config.manager');
  }
  return $this->configManager;
}