function FinalExceptionSubscriber::getErrorLevel
Same name in other branches
- 8.9.x core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::getErrorLevel()
- 10 core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::getErrorLevel()
- 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\EventSubscriberCode
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.