Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / plugin-manager / hook / model.module.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.module.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.module.twig
new file mode 100644 (file)
index 0000000..1d671d2
--- /dev/null
@@ -0,0 +1,17 @@
+/**
+ * Implements hook_{{ plugin_type }}_info().
+ */
+function {{ machine_name }}_{{ plugin_type }}_info() {
+  return [
+    'foo' => [
+      'id' => 'foo',
+      'label' => t('Foo'),
+      'description' => t('Foo description.'),
+    ],
+    'bar' => [
+      'id' => 'bar',
+      'label' => t('Bar'),
+      'description' => t('Bar description.'),
+    ],
+  ];
+}