function TestDefaultExceptionSubscriber::isErrorDisplayable
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::isErrorDisplayable()
- 10 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::isErrorDisplayable()
- 9 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::isErrorDisplayable()
- 8.9.x core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::isErrorDisplayable()
Wrapper for error_displayable().
Parameters
array $error: Optional error to examine for ERROR_REPORTING_DISPLAY_SOME.
Return value
bool TRUE if an error should be displayed, FALSE otherwise.
Overrides FinalExceptionSubscriber::isErrorDisplayable
File
-
core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ FinalExceptionSubscriberTest.php, line 57
Class
- TestDefaultExceptionSubscriber
- Test class for testing the final exception subscriber.
Namespace
Drupal\Tests\Core\EventSubscriberCode
protected function isErrorDisplayable($error) : bool {
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.