You are here

interface ConfigItemNormalizerInterface in Configuration Normalizer 8

Same name and namespace in other branches
  1. 2.0.x src/ConfigItemNormalizerInterface.php \Drupal\config_normalizer\ConfigItemNormalizerInterface

Defines an interface for config item normalizers.

Hierarchy

Expanded class hierarchy of ConfigItemNormalizerInterface

All classes that implement ConfigItemNormalizerInterface

File

src/ConfigItemNormalizerInterface.php, line 8

Namespace

Drupal\config_normalizer
View source
interface ConfigItemNormalizerInterface {

  /**
   * 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.
   * @param array $context
   *   (optional) An array of key-value pairs to pass additional context when needed.
   *
   * @return array
   *   Normalized configuration array.
   */
  public function normalize($name, array $data, array $context = []);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigItemNormalizerInterface::normalize public function Normalizes config for comparison. 1