5 * Install, update and uninstall functions for the update_test_1 module.
9 * Implements hook_update_dependencies().
11 * @see update_test_2_update_dependencies()
13 function update_test_1_update_dependencies() {
14 \Drupal::state()->set('update_test_1_update_dependencies_run', TRUE);
15 // These dependencies are used in combination with those declared in
16 // update_test_2_update_dependencies() for the sole purpose of testing that
17 // the results of hook_update_dependencies() are collected correctly and have
18 // the correct array structure. Therefore, we use updates from the
19 // update_test_0 module (which will be installed first) that they will not
20 // get in the way of other tests.
21 $dependencies['update_test_0'][8001] = [
22 // Compare to update_test_2_update_dependencies(), where the same
23 // update_test_0 module update function is forced to depend on an update
24 // function from a different module. This allows us to test that both
25 // dependencies are correctly recorded.
26 'update_test_1' => 8001,
28 $dependencies['update_test_0'][8002] = [
29 // Compare to update_test_2_update_dependencies(), where the same
30 // update_test_0 module update function is forced to depend on a
31 // different update function within the same module. This allows us to
32 // test that only the dependency on the higher-numbered update function
34 'update_test_1' => 8003,
40 * Dummy update_test_1 update 8001.
42 function update_test_1_update_8001() {
46 * Dummy update_test_1 update 8002.
48 function update_test_1_update_8002() {
52 * Dummy update_test_1 update 8003.
54 function update_test_1_update_8003() {