You are here

public function ImageEntityNormalizer::supportsDenormalization in Consumer Image Styles 8

Same name and namespace in other branches
  1. 8.2 src/Normalizer/ImageEntityNormalizer.php \Drupal\consumer_image_styles\Normalizer\ImageEntityNormalizer::supportsDenormalization()

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/ImageEntityNormalizer.php, line 94

Class

ImageEntityNormalizer

Namespace

Drupal\consumer_image_styles\Normalizer

Code

public function supportsDenormalization($data, $type, $format = NULL) {

  // We do not need to do anything special about denormalization. Passing here
  // will have the serializer use the normal content entity normalizer.
  return FALSE;
}