function TestNormalizerBase::setSupportedTypes

Same name in other branches
  1. 10 core/modules/serialization/tests/src/Unit/Normalizer/NormalizerBaseTest.php \Drupal\Tests\serialization\Unit\Normalizer\TestNormalizerBase::setSupportedTypes()

Sets the supported types.

Parameters

string $supported_types: The class name to set.

File

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

Class

TestNormalizerBase
Testable class for NormalizerBase.

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public function setSupportedTypes($supported_types) : void {
    $this->supportedTypes = [
        $supported_types => FALSE,
    ];
}

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