You are here

public function NormalizerBase::supportsNormalization in JSON:API 8

Overrides NormalizerBase::supportsNormalization

File

src/Normalizer/NormalizerBase.php, line 24

Class

NormalizerBase
Base normalizer used in all JSON API normalizers.

Namespace

Drupal\jsonapi\Normalizer

Code

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