function _batch_test_callback_8
Same name and namespace in other branches
- 10 core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc \_batch_test_callback_8()
Implements callback_batch_operation().
Performs a simple batch operation that optionally throws an exception.
1 string reference to '_batch_test_callback_8'
- _batch_test_batch_8 in core/
modules/ system/ tests/ modules/ batch_test/ batch_test.module - Batch 8: Throws an exception.
File
-
core/
modules/ system/ tests/ modules/ batch_test/ batch_test.callbacks.inc, line 112
Code
function _batch_test_callback_8(bool $throw_exception) : void {
usleep(500);
if ($throw_exception) {
throw new Exception('Exception in batch');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.