Converts typed data objects to arrays.
Expanded class hierarchy of TypedDataNormalizer
class TypedDataNormalizer extends NormalizerBase {
/**
* The interface or class that this Normalizer supports.
*
* @var string
*/
protected $supportedInterfaceOrClass = 'Drupal\\Core\\TypedData\\TypedDataInterface';
/**
* Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize().
*/
public function normalize($object, $format = NULL, array $context = array()) {
return $object
->getValue();
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TypedDataNormalizer:: |
public | function |
Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize(). Overrides NormalizerInterface:: |
|
NormalizerBase:: |
public | function |
Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::supportsNormalization(). Overrides NormalizerInterface:: |
1 |
SerializerAwareNormalizer:: |
public | function |
Sets the owning Serializer object Overrides SerializerAwareInterface:: |
|
TypedDataNormalizer:: |
protected | property |
The interface or class that this Normalizer supports. Overrides NormalizerBase:: |
|
SerializerAwareNormalizer:: |
protected | property |