public function NodePreviewTest::errorHandler in Entity Print 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/NodePreviewTest.php \Drupal\Tests\entity_print\Kernel\NodePreviewTest::errorHandler()
Provides an error handler for purposes of this test.
See set_error_handler() for parameter definitions.
See also
File
- tests/
src/ Kernel/ NodePreviewTest.php, line 98
Class
- NodePreviewTest
- Tests the entity print link in node preview.
Namespace
Drupal\Tests\entity_print\KernelCode
public function errorHandler($errno, $errstr, $errfile, $errline, $errcontext) {
$this->errors[] = compact('errno', 'errstr', 'errfile', 'errline', 'errcontext');
}