diff vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.module.twig @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.module.twig	Thu Feb 28 13:11:55 2019 +0000
@@ -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.'),
+    ],
+  ];
+}