function ErrorHandlerSubscriber::registerErrorHandler
Same name in other branches
- 4.x src/EventSubscriber/ErrorHandlerSubscriber.php \Drupal\devel\EventSubscriber\ErrorHandlerSubscriber::registerErrorHandler()
Register devel error handler.
Parameters
\Symfony\Component\HttpKernel\Event\RequestEvent|null $event: The event to process.
File
-
src/
EventSubscriber/ ErrorHandlerSubscriber.php, line 36
Class
- ErrorHandlerSubscriber
- Listener for handling PHP errors.
Namespace
Drupal\devel\EventSubscriberCode
public function registerErrorHandler(?RequestEvent $event = NULL) : void {
if (!$this->account
->hasPermission('access devel information')) {
return;
}
devel_set_handler(devel_get_handlers());
}