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
1 <?php
2
3 namespace Drupal\{{ machine_name }}\Annotation;
4
5 use Drupal\Component\Annotation\Plugin;
6
7 /**
8  * Defines {{ name|lower }} annotation object.
9  *
10  * @Annotation
11  */
12 class {{ class_prefix }} extends Plugin {
13
14   /**
15    * The plugin ID.
16    *
17    * @var string
18    */
19   public $id;
20
21   /**
22    * The human-readable name of the plugin.
23    *
24    * @var \Drupal\Core\Annotation\Translation
25    *
26    * @ingroup plugin_translatable
27    */
28   public $title;
29
30   /**
31    * The description of the plugin.
32    *
33    * @var \Drupal\Core\Annotation\Translation
34    *
35    * @ingroup plugin_translatable
36    */
37   public $description;
38
39 }