You are here

protected function ConfigItemNormalizer::getNormalizerInstance in Configuration Normalizer 8

Returns an instance of the specified package generation normalizer.

Parameters

string $id: The string identifier of the normalizer to use to package configuration.

Return value

\Drupal\config_normalizer\Plugin\ConfigNormalizerInterface

1 call to ConfigItemNormalizer::getNormalizerInstance()
ConfigItemNormalizer::applyNormalizer in src/ConfigItemNormalizer.php

File

src/ConfigItemNormalizer.php, line 67

Class

ConfigItemNormalizer
Class responsible for performing configuration normalization.

Namespace

Drupal\config_normalizer

Code

protected function getNormalizerInstance($id) {
  if (!isset($this->normalizers[$id])) {
    $instance = $this->normalizerManager
      ->createInstance($id);
    $this->normalizers[$id] = $instance;
  }
  return $this->normalizers[$id];
}