function NullNormalizer::normalize

Same name in other branches
  1. 9 core/modules/serialization/src/Normalizer/NullNormalizer.php \Drupal\serialization\Normalizer\NullNormalizer::normalize()
  2. 8.9.x core/modules/serialization/src/Normalizer/NullNormalizer.php \Drupal\serialization\Normalizer\NullNormalizer::normalize()
  3. 10 core/modules/serialization/src/Normalizer/NullNormalizer.php \Drupal\serialization\Normalizer\NullNormalizer::normalize()

File

core/modules/serialization/src/Normalizer/NullNormalizer.php, line 30

Class

NullNormalizer
Null normalizer.

Namespace

Drupal\serialization\Normalizer

Code

public function normalize($object, $format = NULL, array $context = []) : array|string|int|float|bool|\ArrayObject|null {
    return NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.