You are here

protected function TestDefaultExceptionSubscriber::isErrorDisplayable in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::isErrorDisplayable()
  2. 9 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::isErrorDisplayable()

Wrapper for error_displayable().

Parameters

$error: Optional error to examine for ERROR_REPORTING_DISPLAY_SOME.

Return value

bool

Overrides FinalExceptionSubscriber::isErrorDisplayable

See also

\error_displayable

File

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

Class

TestDefaultExceptionSubscriber

Namespace

Drupal\Tests\Core\EventSubscriber

Code

protected function isErrorDisplayable($error) {
  return TRUE;
}