class TestDefaultExceptionSubscriber in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber
- 9 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber
Hierarchy
- class \Drupal\Core\EventSubscriber\FinalExceptionSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface uses StringTranslationTrait
- class \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber
Expanded class hierarchy of TestDefaultExceptionSubscriber
File
- core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ FinalExceptionSubscriberTest.php, line 47
Namespace
Drupal\Tests\Core\EventSubscriberView source
class TestDefaultExceptionSubscriber extends FinalExceptionSubscriber {
protected function isErrorDisplayable($error) {
return TRUE;
}
protected function simplifyFileInError($error) {
return $error;
}
protected function isErrorLevelVerbose() {
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FinalExceptionSubscriber:: |
protected | property | The config factory. | |
FinalExceptionSubscriber:: |
protected | property | One of the error level constants defined in bootstrap.inc. | |
FinalExceptionSubscriber:: |
protected | function | Gets the configured error level. | |
FinalExceptionSubscriber:: |
public static | function | ||
FinalExceptionSubscriber:: |
public | function | Handles exceptions for this subscriber. | |
FinalExceptionSubscriber:: |
public | function | Constructs a new FinalExceptionSubscriber. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 3 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TestDefaultExceptionSubscriber:: |
protected | function |
Wrapper for error_displayable(). Overrides FinalExceptionSubscriber:: |
|
TestDefaultExceptionSubscriber:: |
protected | function |
Checks whether the error level is verbose or not. Overrides FinalExceptionSubscriber:: |
|
TestDefaultExceptionSubscriber:: |
protected | function |
Attempts to reduce error verbosity in the error message's file path. Overrides FinalExceptionSubscriber:: |