function _test_batch_test_callback
Same name in other branches
- 8.9.x 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()
- 11.x 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
Code
function _test_batch_test_callback($id) {
$entity = EntityTest::create([
'id' => $id,
]);
$entity->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.