You are here

public function ContentEntityNormalizerInterface::normalize in Default Content for D8 2.0.x

Normalizes the entity into an array structure.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity.

Return value

array The normalized values, top level keys must include _meta with at least the entity_type and uuid keys, as well as the values for the default language in the default key and optionally translations.

1 method overrides ContentEntityNormalizerInterface::normalize()
ContentEntityNormalizer::normalize in src/Normalizer/ContentEntityNormalizer.php
Normalizes the entity into an array structure.

File

src/Normalizer/ContentEntityNormalizerInterface.php, line 23

Class

ContentEntityNormalizerInterface
Normalizes and denormalizes content entities.

Namespace

Drupal\default_content\Normalizer

Code

public function normalize(ContentEntityInterface $entity);