You are here

protected function ExceptionTestSiteSubscriber::getHandledFormats in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/ExceptionTestSiteSubscriber.php \Drupal\Core\EventSubscriber\ExceptionTestSiteSubscriber::getHandledFormats()

Specifies the request formats this subscriber will respond to.

Return value

array An indexed array of the format machine names that this subscriber will attempt to process, such as "html" or "json". Returning an empty array will apply to all formats.

Overrides HttpExceptionSubscriberBase::getHandledFormats

See also

\Symfony\Component\HttpFoundation\Request

File

core/lib/Drupal/Core/EventSubscriber/ExceptionTestSiteSubscriber.php, line 28
Contains \Drupal\Core\EventSubscriber\ExceptionTestSiteSubscriber.

Class

ExceptionTestSiteSubscriber
Custom handling of errors when in a system-under-test.

Namespace

Drupal\Core\EventSubscriber

Code

protected function getHandledFormats() {
  return [
    'html',
  ];
}