function TestNormalizerBase::setSupportedTypes
Same name in other branches
- 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\NormalizerCode
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.