class ExceptionCdfJsonSubscriber in Acquia Content Hub 8
Handle Content Hub CDF JSON exceptions the same as JSON exceptions.
Hierarchy
- class \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber
- class \Drupal\acquia_contenthub\EventSubscriber\ExceptionCdfJsonSubscriber
- class \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber
Expanded class hierarchy of ExceptionCdfJsonSubscriber
1 string reference to 'ExceptionCdfJsonSubscriber'
1 service uses ExceptionCdfJsonSubscriber
File
- src/
EventSubscriber/ ExceptionCdfJsonSubscriber.php, line 10
Namespace
Drupal\acquia_contenthub\EventSubscriberView source
class ExceptionCdfJsonSubscriber extends ExceptionJsonSubscriber {
/**
* {@inheritdoc}
*/
protected function getHandledFormats() {
return [
'acquia_contenthub_cdf',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExceptionCdfJsonSubscriber:: |
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 all 4xx errors for JSON. | |
HttpExceptionSubscriberBase:: |
public static | function | Registers the methods in this class that should be listeners. | |
HttpExceptionSubscriberBase:: |
public | function | Handles errors for this subscriber. |