You are here

public function LinkItemNormalizer::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/LinkItemNormalizer.php, line 173

Class

LinkItemNormalizer

Namespace

Drupal\replication\Normalizer

Code

public function supportsDenormalization($data, $type, $format = NULL) {
  if (in_array($type, [
    'Drupal\\link\\Plugin\\Field\\FieldType\\LinkItem',
  ])) {
    return TRUE;
  }
  return FALSE;
}