function FinalExceptionSubscriber::getErrorLevel

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::getErrorLevel()
  2. 10 core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::getErrorLevel()
  3. 11.x core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::getErrorLevel()

Gets the configured error level.

Return value

string

1 call to FinalExceptionSubscriber::getErrorLevel()
FinalExceptionSubscriber::isErrorLevelVerbose in core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php
Checks whether the error level is verbose or not.

File

core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php, line 66

Class

FinalExceptionSubscriber
Last-chance handler for exceptions: the final exception subscriber.

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.