function FinalExceptionSubscriber::isErrorDisplayable

Same name and namespace in other branches
  1. 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

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);
}

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