function HttpExceptionNormalizer::getSupportedTypes
Same name in other branches
- 10 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 172
Class
- HttpExceptionNormalizer
- Normalizes an HttpException in compliance with the JSON:API specification.
Namespace
Drupal\jsonapi\NormalizerCode
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.