You are here

public function NullNormalizer::normalize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/serialization/src/Normalizer/NullNormalizer.php \Drupal\serialization\Normalizer\NullNormalizer::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 NormalizerInterface::normalize

File

core/modules/serialization/src/Normalizer/NullNormalizer.php, line 28
Contains \Drupal\serialization\Normalizer\NullNormalizer.

Class

NullNormalizer
Null normalizer.

Namespace

Drupal\serialization\Normalizer

Code

public function normalize($object, $format = NULL, array $context = array()) {
  return NULL;
}