function TestDefaultExceptionSubscriber::simplifyFileInError
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::simplifyFileInError()
- 8.9.x core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::simplifyFileInError()
- 11.x core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\TestDefaultExceptionSubscriber::simplifyFileInError()
Attempts to reduce error verbosity in the error message's file path.
Attempts to reduce verbosity by removing DRUPAL_ROOT from the file path in the message. This does not happen for (false) security.
Parameters
$error: Optional error to examine for ERROR_REPORTING_DISPLAY_SOME.
Return value
array The updated $error.
Overrides FinalExceptionSubscriber::simplifyFileInError
File
-
core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ FinalExceptionSubscriberTest.php, line 55
Class
Namespace
Drupal\Tests\Core\EventSubscriberCode
protected function simplifyFileInError($error) {
return $error;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.