public function PathFieldItemListNormalizer::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/ PathFieldItemListNormalizer.php, line 58
Class
- PathFieldItemListNormalizer
- Normalizes path field.
Namespace
Drupal\replication\NormalizerCode
public function supportsDenormalization($data, $type, $format = NULL) {
if (in_array($type, [
'Drupal\\path\\Plugin\\Field\\FieldType\\PathFieldItemList',
'Drupal\\multiversion\\MultiversionFieldItemList',
])) {
return TRUE;
}
return FALSE;
}