public function MetatagFieldItemNormalizer::supportsDenormalization in Replication 8
Implements \Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization()
This class doesn't implement DenormalizerInterface, but most of its child classes do. Therefore, this method is implemented at this level to reduce code duplication.
Overrides NormalizerBase::supportsDenormalization
File
- src/
Normalizer/ MetatagFieldItemNormalizer.php, line 28
Class
- MetatagFieldItemNormalizer
- Converts the Metatag field item object structure to METATAG array structure.
Namespace
Drupal\replication\NormalizerCode
public function supportsDenormalization($data, $type, $format = NULL) {
if (in_array($type, [
'Drupal\\metatag\\Plugin\\Field\\FieldType\\MetatagFieldItem',
])) {
return TRUE;
}
return FALSE;
}