You are here

public function ConfigEntityNormalizer::normalize in Drupal 8

Same name and namespace in other branches
  1. 9 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\Normalizer

Code

public function normalize($object, $format = NULL, array $context = []) {
  return static::getDataWithoutInternals($object
    ->toArray());
}