You are here

protected function FinalExceptionSubscriber::getErrorLevel in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::getErrorLevel()
  2. 9 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;
}