function update_test_2_update_dependencies
Same name in other branches
- 7.x modules/simpletest/tests/update_test_2.install \update_test_2_update_dependencies()
- 9 core/modules/system/tests/modules/update_test_2/update_test_2.install \update_test_2_update_dependencies()
- 8.9.x core/modules/system/tests/modules/update_test_2/update_test_2.install \update_test_2_update_dependencies()
- 10 core/modules/system/tests/modules/update_test_2/update_test_2.install \update_test_2_update_dependencies()
Implements hook_update_dependencies().
See also
update_test_1_update_dependencies()
update_test_3_update_dependencies()
File
-
core/
modules/ system/ tests/ modules/ update_test_2/ update_test_2.install, line 16
Code
function update_test_2_update_dependencies() {
// Combined with update_test_3_update_dependencies(), we are declaring here
// that these two modules run updates in the following order:
// 1. update_test_2_update_8001()
// 2. update_test_3_update_8001()
// 3. update_test_2_update_8002()
// 4. update_test_2_update_8003()
$dependencies['update_test_2'][8002] = [
'update_test_3' => 8001,
];
// These are coordinated with the corresponding dependencies declared in
// update_test_1_update_dependencies().
$dependencies['update_test_0'][8001] = [
'update_test_2' => 8002,
];
$dependencies['update_test_0'][8002] = [
'update_test_1' => 8002,
];
return $dependencies;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.