function TestNormalizerBase::normalize

Same name and namespace in other branches
  1. 11.x core/modules/serialization/tests/src/Unit/Normalizer/NormalizerBaseTest.php \Drupal\Tests\serialization\Unit\Normalizer\TestNormalizerBase::normalize()

Normalizes data into a set of arrays/scalars.

Parameters

object $object: Data to normalize.

string|null $format: Format the normalization result will be encoded as.

array<string, mixed> $context: Context options for the normalizer.

Return value

null The normalized data.

File

core/modules/serialization/tests/src/Unit/Normalizer/NormalizerBaseTest.php, line 108

Class

TestNormalizerBase
Testable class for NormalizerBase.

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.