You are here

class ExceptionCdfJsonSubscriber in Acquia Content Hub 8

Handle Content Hub CDF JSON exceptions the same as JSON exceptions.

Hierarchy

Expanded class hierarchy of ExceptionCdfJsonSubscriber

1 string reference to 'ExceptionCdfJsonSubscriber'
acquia_contenthub.services.yml in ./acquia_contenthub.services.yml
acquia_contenthub.services.yml
1 service uses ExceptionCdfJsonSubscriber
acquia_contenthub.exception.acquia_contenthub_cdf in ./acquia_contenthub.services.yml
Drupal\acquia_contenthub\EventSubscriber\ExceptionCdfJsonSubscriber

File

src/EventSubscriber/ExceptionCdfJsonSubscriber.php, line 10

Namespace

Drupal\acquia_contenthub\EventSubscriber
View source
class ExceptionCdfJsonSubscriber extends ExceptionJsonSubscriber {

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

}

Members

Namesort descending Modifiers Type Description Overrides
ExceptionCdfJsonSubscriber::getHandledFormats protected function Specifies the request formats this subscriber will respond to. Overrides ExceptionJsonSubscriber::getHandledFormats
ExceptionJsonSubscriber::getPriority protected static function Specifies the priority of all listeners in this class. Overrides HttpExceptionSubscriberBase::getPriority
ExceptionJsonSubscriber::on4xx public function Handles all 4xx errors for JSON.
HttpExceptionSubscriberBase::getSubscribedEvents public static function Registers the methods in this class that should be listeners.
HttpExceptionSubscriberBase::onException public function Handles errors for this subscriber.