function Fast404ExceptionHtmlSubscriber::getHandledFormats
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php \Drupal\Core\EventSubscriber\Fast404ExceptionHtmlSubscriber::getHandledFormats()
- 10 core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php \Drupal\Core\EventSubscriber\Fast404ExceptionHtmlSubscriber::getHandledFormats()
- 11.x core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php \Drupal\Core\EventSubscriber\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
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ Fast404ExceptionHtmlSubscriber.php, line 75
Class
- Fast404ExceptionHtmlSubscriber
- High-performance 404 exception subscriber.
Namespace
Drupal\Core\EventSubscriberCode
protected function getHandledFormats() {
return [
'html',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.