X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fmodules_installed.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fmodules_installed.twig;h=1fd277d8a2c99fd24f875d3a75f522d5267d3c99;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_installed.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_installed.twig new file mode 100644 index 000000000..1fd277d8a --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_installed.twig @@ -0,0 +1,8 @@ +/** + * Implements hook_modules_installed(). + */ +function {{ machine_name }}_modules_installed($modules) { + if (in_array('lousy_module', $modules)) { + \Drupal::state()->set('mymodule.lousy_module_compatibility', TRUE); + } +}