You are here

public function TestNormalizerBase::setSupportedInterfaceOrClass in Drupal 8

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

Sets the protected supportedInterfaceOrClass property.

Parameters

string $supported_interface_or_class: The class name to set.

File

core/modules/serialization/tests/src/Unit/Normalizer/NormalizerBaseTest.php, line 77
Contains \Drupal\Tests\serialization\Unit\Normalizer\NormalizerBaseTest.

Class

TestNormalizerBase
Test class for NormalizerBase.

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public function setSupportedInterfaceOrClass($supported_interface_or_class) {
  $this->supportedInterfaceOrClass = $supported_interface_or_class;
}