X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fupdate_dependencies.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fupdate_dependencies.twig;h=a7373b04d245f52f66507ea1ee0fb5da91b18625;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_dependencies.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_dependencies.twig new file mode 100644 index 000000000..a7373b04d --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_dependencies.twig @@ -0,0 +1,22 @@ +/** + * Implements hook_update_dependencies(). + */ +function {{ machine_name }}_update_dependencies() { + // Indicate that the mymodule_update_8001() function provided by this module + // must run after the another_module_update_8003() function provided by the + // 'another_module' module. + $dependencies['mymodule'][8001] = [ + 'another_module' => 8003, + ]; + // Indicate that the mymodule_update_8002() function provided by this module + // must run before the yet_another_module_update_8005() function provided by + // the 'yet_another_module' module. (Note that declaring dependencies in this + // direction should be done only in rare situations, since it can lead to the + // following problem: If a site has already run the yet_another_module + // module's database updates before it updates its codebase to pick up the + // newest mymodule code, then the dependency declared here will be ignored.) + $dependencies['yet_another_module'][8005] = [ + 'mymodule' => 8002, + ]; + return $dependencies; +}