MetatagFieldItemNormalizer.php in Replication 8
File
src/Normalizer/MetatagFieldItemNormalizer.php
View source
<?php
namespace Drupal\replication\Normalizer;
use Drupal\serialization\Normalizer\FieldItemNormalizer;
class MetatagFieldItemNormalizer extends FieldItemNormalizer {
protected $supportedInterfaceOrClass = 'Drupal\\metatag\\Plugin\\Field\\FieldType\\MetatagFieldItem';
public function normalize($object, $format = NULL, array $context = []) {
return parent::normalize($object, $format, $context);
}
public function supportsDenormalization($data, $type, $format = NULL) {
if (in_array($type, [
'Drupal\\metatag\\Plugin\\Field\\FieldType\\MetatagFieldItem',
])) {
return TRUE;
}
return FALSE;
}
}