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 / annotation / src / Annotation / Example.php.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/Annotation/Example.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/Annotation/Example.php.twig
new file mode 100644 (file)
index 0000000..6dd2134
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+
+namespace Drupal\{{ machine_name }}\Annotation;
+
+use Drupal\Component\Annotation\Plugin;
+
+/**
+ * Defines {{ plugin_type }} annotation object.
+ *
+ * @Annotation
+ */
+class {{ class_prefix }} extends Plugin {
+
+  /**
+   * The plugin ID.
+   *
+   * @var string
+   */
+  public $id;
+
+  /**
+   * The human-readable name of the plugin.
+   *
+   * @var \Drupal\Core\Annotation\Translation
+   *
+   * @ingroup plugin_translatable
+   */
+  public $title;
+
+  /**
+   * The description of the plugin.
+   *
+   * @var \Drupal\Core\Annotation\Translation
+   *
+   * @ingroup plugin_translatable
+   */
+  public $description;
+
+}