class ExceptionHalJsonSubscriber in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/hal/src/EventSubscriber/ExceptionHalJsonSubscriber.php \Drupal\hal\EventSubscriber\ExceptionHalJsonSubscriber
Handle HAL JSON exceptions the same as JSON exceptions.
Hierarchy
- class \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase implements EventSubscriberInterface
- class \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber
- class \Drupal\hal\EventSubscriber\ExceptionHalJsonSubscriber
- class \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber
Expanded class hierarchy of ExceptionHalJsonSubscriber
1 string reference to 'ExceptionHalJsonSubscriber'
- hal.services.yml in core/
modules/ hal/ hal.services.yml - core/modules/hal/hal.services.yml
1 service uses ExceptionHalJsonSubscriber
File
- core/
modules/ hal/ src/ EventSubscriber/ ExceptionHalJsonSubscriber.php, line 15 - Contains \Drupal\hal\EventSubscriber\ExceptionHalJsonSubscriber.
Namespace
Drupal\hal\EventSubscriberView source
class ExceptionHalJsonSubscriber extends ExceptionJsonSubscriber {
/**
* {@inheritdoc}
*/
protected function getHandledFormats() {
return [
'hal_json',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExceptionHalJsonSubscriber:: |
protected | function |
Specifies the request formats this subscriber will respond to. Overrides ExceptionJsonSubscriber:: |
|
ExceptionJsonSubscriber:: |
protected static | function |
Specifies the priority of all listeners in this class. Overrides HttpExceptionSubscriberBase:: |
|
ExceptionJsonSubscriber:: |
public | function | Handles a 403 error for JSON. | |
ExceptionJsonSubscriber:: |
public | function | Handles a 404 error for JSON. | |
ExceptionJsonSubscriber:: |
public | function | Handles a 405 error for JSON. | |
ExceptionJsonSubscriber:: |
public | function | Handles a 406 error for JSON. | |
HttpExceptionSubscriberBase:: |
public static | function |
Registers the methods in this class that should be listeners. Overrides EventSubscriberInterface:: |
|
HttpExceptionSubscriberBase:: |
public | function | Handles errors for this subscriber. |