function DefaultExceptionSubscriber::getHandledFormats

Overrides DefaultExceptionSubscriber::getHandledFormats

File

core/modules/jsonapi/src/EventSubscriber/DefaultExceptionSubscriber.php, line 37

Class

DefaultExceptionSubscriber
Serializes exceptions in compliance with the JSON:API specification.

Namespace

Drupal\jsonapi\EventSubscriber

Code

protected function getHandledFormats() {
  return [
    'api_json',
  ];
}

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