Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / module / plugin-manager / src / Annotation / Model.php.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/plugin-manager/src/Annotation/Model.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/plugin-manager/src/Annotation/Model.php.twig
new file mode 100644 (file)
index 0000000..28ca4a1
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+
+namespace Drupal\{{ machine_name }}\Annotation;
+
+use Drupal\Component\Annotation\Plugin;
+
+/**
+ * Defines {{ name|lower }} 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;
+
+}