Fast404ExceptionHtmlSubscriber::getHandledFormats

protected Fast404ExceptionHtmlSubscriber::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/Fast404ExceptionHtmlSubscriber.php, line 59

Class

Fast404ExceptionHtmlSubscriber
High-performance 404 exception subscriber.

Namespace

Drupal\Core\EventSubscriber

Code

protected function getHandledFormats() {
  return ['html'];
}
doc_Drupal
2016-10-29 09:09:48
Comments
Leave a Comment

Please login to continue.