function FinalExceptionSubscriber::isErrorDisplayable

Same name in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::isErrorDisplayable()
  2. 8.9.x core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php \Drupal\Core\EventSubscriber\FinalExceptionSubscriber::isErrorDisplayable()
  3. 11.x 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 201

Class

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

Namespace

Drupal\Core\EventSubscriber

Code

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

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