You are here

protected function NormalizedStorageComparerTrait::getNormalizerManager in Configuration Normalizer 8

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

Gets the normalizer manager service.

Return value

\Drupal\config_normalizer\Plugin\ConfigNormalizerManager The normalizer manager.

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

File

src/Config/NormalizedStorageComparerTrait.php, line 100

Class

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

Namespace

Drupal\config_normalizer\Config

Code

protected function getNormalizerManager() {
  if (!$this->normalizerManager) {
    $this->normalizerManager = \Drupal::service('plugin.manager.config_normalizer');
  }
  return $this->normalizerManager;
}