function _batch_test_batch_0
Same name and namespace in other branches
- 7.x modules/simpletest/tests/batch_test.module \_batch_test_batch_0()
- 9 core/modules/system/tests/modules/batch_test/batch_test.module \_batch_test_batch_0()
- 8.9.x core/modules/system/tests/modules/batch_test/batch_test.module \_batch_test_batch_0()
- 10 core/modules/system/tests/modules/batch_test/batch_test.module \_batch_test_batch_0()
Batch 0: Does nothing.
File
-
core/
modules/ system/ tests/ modules/ batch_test/ batch_test.module, line 23
Code
function _batch_test_batch_0() {
$batch_builder = (new BatchBuilder())->setFile(\Drupal::service('extension.list.module')->getPath('batch_test') . '/batch_test.callbacks.inc')
->setFinishCallback('_batch_test_finished_0');
return $batch_builder->toArray() + [
'batch_test_id' => 'batch_0',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.