You are here

function devel_get_handlers in Devel 8

Same name and namespace in other branches
  1. 8.3 devel.module \devel_get_handlers()
  2. 8.2 devel.module \devel_get_handlers()
  3. 7 devel.module \devel_get_handlers()
  4. 4.x devel.module \devel_get_handlers()

Gets error handlers.

3 calls to devel_get_handlers()
backtrace_error_handler in ./devel.module
Displays backtrace showing the route of calls to the current error.
ErrorHandlerSubscriber::registerErrorHandler in src/EventSubscriber/ErrorHandlerSubscriber.php
Register devel error handler.
SettingsForm::buildForm in src/Form/SettingsForm.php
Form constructor.

File

./devel.module, line 158
This module holds functions useful for Drupal development. Please contribute!

Code

function devel_get_handlers() {
  $error_handlers = \Drupal::config('devel.settings')
    ->get('error_handlers');
  if (!empty($error_handlers)) {
    unset($error_handlers[DEVEL_ERROR_HANDLER_NONE]);
  }
  return $error_handlers;
}