function _test_batch_test_callback in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/test_batch_test/test_batch_test.install \_test_batch_test_callback()
- 10 core/modules/system/tests/modules/test_batch_test/test_batch_test.install \_test_batch_test_callback()
Callback for batch operations.
1 string reference to '_test_batch_test_callback'
- test_batch_test_install in core/
modules/ system/ tests/ modules/ test_batch_test/ test_batch_test.install - Implements hook_install().
File
- core/
modules/ system/ tests/ modules/ test_batch_test/ test_batch_test.install, line 31 - Install hooks for test module.
Code
function _test_batch_test_callback($id) {
$entity = EntityTest::create([
'id' => $id,
]);
$entity
->save();
}