You are here

protected function DefaultExceptionSubscriber::getErrorLevel in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php \Drupal\Core\EventSubscriber\DefaultExceptionSubscriber::getErrorLevel()

Gets the configured error level.

Return value

string

1 call to DefaultExceptionSubscriber::getErrorLevel()
DefaultExceptionSubscriber::onHtml in core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php
Handles any exception as a generic error page for HTML.

File

core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 60
Contains \Drupal\Core\EventSubscriber\DefaultExceptionSubscriber.

Class

DefaultExceptionSubscriber
Last-chance handler for exceptions.

Namespace

Drupal\Core\EventSubscriber

Code

protected function getErrorLevel() {
  if (!isset($this->errorLevel)) {
    $this->errorLevel = $this->configFactory
      ->get('system.logging')
      ->get('error_level');
  }
  return $this->errorLevel;
}