a7373b04d245f52f66507ea1ee0fb5da91b18625
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / update_dependencies.twig
1 /**
2  * Implements hook_update_dependencies().
3  */
4 function {{ machine_name }}_update_dependencies() {
5   // Indicate that the mymodule_update_8001() function provided by this module
6   // must run after the another_module_update_8003() function provided by the
7   // 'another_module' module.
8   $dependencies['mymodule'][8001] = [
9     'another_module' => 8003,
10   ];
11   // Indicate that the mymodule_update_8002() function provided by this module
12   // must run before the yet_another_module_update_8005() function provided by
13   // the 'yet_another_module' module. (Note that declaring dependencies in this
14   // direction should be done only in rare situations, since it can lead to the
15   // following problem: If a site has already run the yet_another_module
16   // module's database updates before it updates its codebase to pick up the
17   // newest mymodule code, then the dependency declared here will be ignored.)
18   $dependencies['yet_another_module'][8005] = [
19     'mymodule' => 8002,
20   ];
21   return $dependencies;
22 }