You are here

protected function NormalizedStorageComparerTrait::getNormalizer in Configuration Normalizer 2.0.x

Gets the normalizer service.

Return value

\Drupal\config_normalizer\ConfigNormalizerInterface The configuration normalizer.

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

File

src/Config/NormalizedStorageComparerTrait.php, line 55

Class

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

Namespace

Drupal\config_normalizer\Config

Code

protected function getNormalizer() {
  if (!$this->configNormalizer) {
    $this->configNormalizer = \Drupal::service('config_normalizer.normalizer');
  }
  return $this->configNormalizer;
}