function devel_get_handlers

Same name in other branches
  1. 7.x-1.x devel.module \devel_get_handlers()
  2. 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 150

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;
}