function TestNormalizerBase::setSupportedInterfaceOrClass

Same name 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

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;
}

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