You are here

interface ConfigNormalizerInterface in Configuration Normalizer 2.0.x

Same name in this branch
  1. 2.0.x src/ConfigNormalizerInterface.php \Drupal\config_normalizer\ConfigNormalizerInterface
  2. 2.0.x src/Plugin/ConfigNormalizerInterface.php \Drupal\config_normalizer\Plugin\ConfigNormalizerInterface

Defines an interface for config item normalizers.

@api This is the main API of this module.

Hierarchy

Expanded class hierarchy of ConfigNormalizerInterface

All classes that implement ConfigNormalizerInterface

2 files declare their use of ConfigNormalizerInterface
NormalizedReadOnlyStorage.php in src/Config/NormalizedReadOnlyStorage.php
NormalizedStorageComparerTrait.php in src/Config/NormalizedStorageComparerTrait.php

File

src/ConfigNormalizerInterface.php, line 10

Namespace

Drupal\config_normalizer
View source
interface ConfigNormalizerInterface {

  /**
   * Normalizes config for comparison.
   *
   * Normalization can help ensure that config from different storages can be
   * compared meaningfully.
   *
   * @param string $name
   *   The name of a configuration object to normalize.
   * @param array $data
   *   Configuration array to normalize.
   *
   * @return array
   *   Normalized configuration array.
   */
  public function normalize($name, array $data);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigNormalizerInterface::normalize public function Normalizes config for comparison. 5