ExceptionHalJsonSubscriber.php in Zircon Profile 8
Same filename and directory in other branches
Namespace
Drupal\hal\EventSubscriberFile
core/modules/hal/src/EventSubscriber/ExceptionHalJsonSubscriber.phpView 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
Name | Description |
---|---|
ExceptionHalJsonSubscriber | Handle HAL JSON exceptions the same as JSON exceptions. |