Provide a base class for JSON-LD Normalizers.
Expanded class hierarchy of JsonldNormalizerBase
abstract class JsonldNormalizerBase extends SerializerAwareNormalizer implements NormalizerInterface {
/**
* The formats that this Normalizer supports.
*
* @var array
*/
protected static $format = array(
'jsonld',
'drupal_jsonld',
);
/**
* Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize()
*/
public function supportsNormalization($data, $format = NULL) {
return is_object($data) && in_array($format, static::$format);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
JsonldNormalizerBase:: |
protected static | property | The formats that this Normalizer supports. | |
JsonldNormalizerBase:: |
public | function |
Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize() Overrides NormalizerInterface:: |
3 |
NormalizerInterface:: |
public | function | Normalizes an object into a set of arrays/scalars | 7 |
SerializerAwareNormalizer:: |
protected | property | ||
SerializerAwareNormalizer:: |
public | function |
Sets the owning Serializer object Overrides SerializerAwareInterface:: |