You are here

protected function ExceptionJsonSubscriber::getHandledFormats in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/ExceptionJsonSubscriber.php \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber::getHandledFormats()
  2. 9 core/lib/Drupal/Core/EventSubscriber/ExceptionJsonSubscriber.php \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber::getHandledFormats()

File

core/lib/Drupal/Core/EventSubscriber/ExceptionJsonSubscriber.php, line 18

Class

ExceptionJsonSubscriber
Default handling for JSON errors.

Namespace

Drupal\Core\EventSubscriber

Code

protected function getHandledFormats() {
  return [
    'json',
    'drupal_modal',
    'drupal_dialog',
    'drupal_ajax',
  ];
}