function TestDefaultExceptionSubscriber::isErrorDisplayable

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::isErrorDisplayable()
  2. 10 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::isErrorDisplayable()
  3. 11.x 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

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

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