protected function DefaultExceptionSubscriber::getErrorLevel in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\EventSubscriberCode
protected function getErrorLevel() {
if (!isset($this->errorLevel)) {
$this->errorLevel = $this->configFactory
->get('system.logging')
->get('error_level');
}
return $this->errorLevel;
}