You are here

protected function FinalExceptionSubscriber::isErrorDisplayable in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::isErrorDisplayable()
  2. 9 core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::isErrorDisplayable()

Wrapper for error_displayable().

Parameters

$error: Optional error to examine for ERROR_REPORTING_DISPLAY_SOME.

Return value

bool

See also

\error_displayable

1 call to FinalExceptionSubscriber::isErrorDisplayable()
FinalExceptionSubscriber::onException in core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php
Handles exceptions for this subscriber.
1 method overrides FinalExceptionSubscriber::isErrorDisplayable()
TestDefaultExceptionSubscriber::isErrorDisplayable in core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php
Wrapper for error_displayable().

File

core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php, line 169

Class

FinalExceptionSubscriber
Last-chance handler for exceptions: the final exception subscriber.

Namespace

Drupal\Core\EventSubscriber

Code

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