You are here

ExceptionHalJsonSubscriber.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/hal/src/EventSubscriber/ExceptionHalJsonSubscriber.php

File

core/modules/hal/src/EventSubscriber/ExceptionHalJsonSubscriber.php
View source
<?php

/**
 * @file
 * Contains \Drupal\hal\EventSubscriber\ExceptionHalJsonSubscriber.
 */
namespace Drupal\hal\EventSubscriber;

use Drupal\Core\EventSubscriber\ExceptionJsonSubscriber;

/**
 * Handle HAL JSON exceptions the same as JSON exceptions.
 */
class ExceptionHalJsonSubscriber extends ExceptionJsonSubscriber {

  /**
   * {@inheritdoc}
   */
  protected function getHandledFormats() {
    return [
      'hal_json',
    ];
  }

}

Classes

Namesort descending Description
ExceptionHalJsonSubscriber Handle HAL JSON exceptions the same as JSON exceptions.