function HttpExceptionNormalizer::getSupportedTypes

Same name and namespace in other branches
  1. 11.x core/modules/jsonapi/src/Normalizer/HttpExceptionNormalizer.php \Drupal\jsonapi\Normalizer\HttpExceptionNormalizer::getSupportedTypes()

Overrides NormalizerBase::getSupportedTypes

2 methods override HttpExceptionNormalizer::getSupportedTypes()
EntityAccessDeniedHttpExceptionNormalizer::getSupportedTypes in core/modules/jsonapi/src/Normalizer/EntityAccessDeniedHttpExceptionNormalizer.php
UnprocessableHttpEntityExceptionNormalizer::getSupportedTypes in core/modules/jsonapi/src/Normalizer/UnprocessableHttpEntityExceptionNormalizer.php

File

core/modules/jsonapi/src/Normalizer/HttpExceptionNormalizer.php, line 181

Class

HttpExceptionNormalizer
Normalizes an HttpException in compliance with the JSON:API specification.

Namespace

Drupal\jsonapi\Normalizer

Code

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

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