Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / modules_installed.twig
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 (file)
index 0000000..1fd277d
--- /dev/null
@@ -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);
+  }
+}