function EntityAccessDeniedHttpExceptionNormalizer::getSupportedTypes

Same name in other branches
  1. 10 core/modules/jsonapi/src/Normalizer/EntityAccessDeniedHttpExceptionNormalizer.php \Drupal\jsonapi\Normalizer\EntityAccessDeniedHttpExceptionNormalizer::getSupportedTypes()

Overrides HttpExceptionNormalizer::getSupportedTypes

File

core/modules/jsonapi/src/Normalizer/EntityAccessDeniedHttpExceptionNormalizer.php, line 66

Class

EntityAccessDeniedHttpExceptionNormalizer
Normalizes an EntityAccessDeniedException.

Namespace

Drupal\jsonapi\Normalizer

Code

public function getSupportedTypes(?string $format) : array {
    return [
        EntityAccessDeniedHttpException::class => TRUE,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.