ExceptionCdfJsonSubscriber.php in Acquia Content Hub 8
Namespace
Drupal\acquia_contenthub\EventSubscriberFile
src/EventSubscriber/ExceptionCdfJsonSubscriber.phpView source
<?php
namespace Drupal\acquia_contenthub\EventSubscriber;
use Drupal\Core\EventSubscriber\ExceptionJsonSubscriber;
/**
* Handle Content Hub CDF JSON exceptions the same as JSON exceptions.
*/
class ExceptionCdfJsonSubscriber extends ExceptionJsonSubscriber {
/**
* {@inheritdoc}
*/
protected function getHandledFormats() {
return [
'acquia_contenthub_cdf',
];
}
}
Classes
Name | Description |
---|---|
ExceptionCdfJsonSubscriber | Handle Content Hub CDF JSON exceptions the same as JSON exceptions. |