function TestExtendedNormalizer::getSupportedTypes

Overrides ComplexDataNormalizer::getSupportedTypes

File

core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php, line 122

Class

TestExtendedNormalizer
Test normalizer with a different supported class.

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public function getSupportedTypes(?string $format) : array {
  return [
    \stdClass::class => TRUE,
  ];
}

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