function ConfigEntityNormalizer::normalize
Same name in other branches
- 8.9.x core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php \Drupal\serialization\Normalizer\ConfigEntityNormalizer::normalize()
- 10 core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php \Drupal\serialization\Normalizer\ConfigEntityNormalizer::normalize()
- 11.x core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php \Drupal\serialization\Normalizer\ConfigEntityNormalizer::normalize()
Overrides ComplexDataNormalizer::normalize
File
-
core/
modules/ serialization/ src/ Normalizer/ ConfigEntityNormalizer.php, line 20
Class
- ConfigEntityNormalizer
- Normalizes/denormalizes Drupal config entity objects into an array structure.
Namespace
Drupal\serialization\NormalizerCode
public function normalize($object, $format = NULL, array $context = []) {
return static::getDataWithoutInternals($object->toArray());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.