You are here

protected function NormalizedReadOnlyStorage::normalize in Configuration Normalizer 2.0.x

Same name and namespace in other branches
  1. 8 src/Config/NormalizedReadOnlyStorage.php \Drupal\config_normalizer\Config\NormalizedReadOnlyStorage::normalize()

Normalizes configuration data.

Parameters

string $name: The name of a configuration object to load.

array|bool $data: The configuration data to normalize.

Return value

array|bool The configuration data stored for the configuration object name. If no configuration data exists for the given name, FALSE is returned.

2 calls to NormalizedReadOnlyStorage::normalize()
NormalizedReadOnlyStorage::read in src/Config/NormalizedReadOnlyStorage.php
Reads configuration data from the storage.
NormalizedReadOnlyStorage::readMultiple in src/Config/NormalizedReadOnlyStorage.php
Reads configuration data from the storage.

File

src/Config/NormalizedReadOnlyStorage.php, line 98

Class

NormalizedReadOnlyStorage
Defines the normalized read only storage.

Namespace

Drupal\config_normalizer\Config

Code

protected function normalize($name, $data) {
  if (!is_bool($data)) {
    $data = $this->normalizer
      ->normalize($name, $data);
  }
  return $data;
}