class TestDefaultExceptionSubscriber

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber
  2. 10 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber
  3. 11.x core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber

Hierarchy

Expanded class hierarchy of TestDefaultExceptionSubscriber

File

core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php, line 47

Namespace

Drupal\Tests\Core\EventSubscriber
View source
class TestDefaultExceptionSubscriber extends FinalExceptionSubscriber {
    protected function isErrorDisplayable($error) {
        return TRUE;
    }
    protected function simplifyFileInError($error) {
        return $error;
    }
    protected function isErrorLevelVerbose() {
        return TRUE;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
FinalExceptionSubscriber::$configFactory protected property The config factory.
FinalExceptionSubscriber::$errorLevel protected property One of the error level constants defined in bootstrap.inc.
FinalExceptionSubscriber::getErrorLevel protected function Gets the configured error level.
FinalExceptionSubscriber::getSubscribedEvents public static function
FinalExceptionSubscriber::onException public function Handles exceptions for this subscriber.
FinalExceptionSubscriber::__construct public function Constructs a new FinalExceptionSubscriber.
StringTranslationTrait::$stringTranslation protected property The string translation service. 3
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
TestDefaultExceptionSubscriber::isErrorDisplayable protected function Wrapper for error_displayable(). Overrides FinalExceptionSubscriber::isErrorDisplayable
TestDefaultExceptionSubscriber::isErrorLevelVerbose protected function Checks whether the error level is verbose or not. Overrides FinalExceptionSubscriber::isErrorLevelVerbose
TestDefaultExceptionSubscriber::simplifyFileInError protected function Attempts to reduce error verbosity in the error message's file path. Overrides FinalExceptionSubscriber::simplifyFileInError

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