public function NormalizerBase::supportsNormalization

Same name in this branch
  1. 8.x drupal/core/modules/serialization/lib/Drupal/serialization/Normalizer/NormalizerBase.php \Drupal\serialization\Normalizer\NormalizerBase::supportsNormalization()
  2. 8.x drupal/core/modules/hal/lib/Drupal/hal/Normalizer/NormalizerBase.php \Drupal\hal\Normalizer\NormalizerBase::supportsNormalization()

Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::supportsNormalization().

Overrides NormalizerBase::supportsNormalization

File

drupal/core/modules/hal/lib/Drupal/hal/Normalizer/NormalizerBase.php, line 43
Contains \Drupal\hal\Normalizer\NormalizerBase.

Class

NormalizerBase
Base class for Normalizers.

Namespace

Drupal\hal\Normalizer

Code

public function supportsNormalization($data, $format = NULL) {
  return in_array($format, $this->formats) && parent::supportsNormalization($data, $format);
}