You are here

public function ConfigEntityNormalizer::normalize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php \Drupal\serialization\Normalizer\ConfigEntityNormalizer::normalize()

Normalizes an object into a set of arrays/scalars.

Parameters

object $object object to normalize:

string $format format the normalization result will be encoded as:

array $context Context options for the normalizer:

Return value

array|string|bool|int|float|null

Overrides ComplexDataNormalizer::normalize

File

core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php, line 25
Contains \Drupal\serialization\Normalizer\ConfigEntityNormalizer.

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 = array()) {
  return $object
    ->toArray();
}