abstract class TestNormalizerBase in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/serialization/tests/src/Unit/Normalizer/NormalizerBaseTest.php \Drupal\Tests\serialization\Unit\Normalizer\TestNormalizerBase
Test class for NormalizerBase.
Hierarchy
- class \Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer implements SerializerAwareInterface
- class \Drupal\serialization\Normalizer\NormalizerBase implements NormalizerInterface
- class \Drupal\Tests\serialization\Unit\Normalizer\TestNormalizerBase
- class \Drupal\serialization\Normalizer\NormalizerBase implements NormalizerInterface
Expanded class hierarchy of TestNormalizerBase
File
- core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ NormalizerBaseTest.php, line 69 - Contains \Drupal\Tests\serialization\Unit\Normalizer\NormalizerBaseTest.
Namespace
Drupal\Tests\serialization\Unit\NormalizerView source
abstract class TestNormalizerBase extends NormalizerBase {
/**
* Sets the protected supportedInterfaceOrClass property.
*
* @param string $supported_interface_or_class
* The class name to set.
*/
public function setSupportedInterfaceOrClass($supported_interface_or_class) {
$this->supportedInterfaceOrClass = $supported_interface_or_class;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NormalizerBase:: |
protected | property | The interface or class that this Normalizer supports. | 7 |
NormalizerBase:: |
protected | function | Checks if the provided format is supported by this normalizer. | |
NormalizerBase:: |
public | function | Implements \Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization() | 1 |
NormalizerBase:: |
public | function |
Checks whether the given class is supported for normalization by this normalizer. Overrides NormalizerInterface:: |
1 |
NormalizerInterface:: |
public | function | Normalizes an object into a set of arrays/scalars. | 15 |
SerializerAwareNormalizer:: |
protected | property | ||
SerializerAwareNormalizer:: |
public | function |
Sets the owning Serializer object. Overrides SerializerAwareInterface:: |
|
TestNormalizerBase:: |
public | function | Sets the protected supportedInterfaceOrClass property. |