Added another front page space for Yaffs info. Added roave security for composer.
[yaffs-website] / web / core / lib / Drupal / Component / Annotation / PluginID.php
1 <?php
2
3 namespace Drupal\Component\Annotation;
4
5 /**
6  * Defines a Plugin annotation object that just contains an ID.
7  *
8  * @Annotation
9  */
10 class PluginID extends AnnotationBase {
11
12   /**
13    * The plugin ID.
14    *
15    * When an annotation is given no key, 'value' is assumed by Doctrine.
16    *
17    * @var string
18    */
19   public $value;
20
21   /**
22    * {@inheritdoc}
23    */
24   public function get() {
25     return [
26       'id' => $this->value,
27       'class' => $this->class,
28       'provider' => $this->provider,
29     ];
30   }
31
32   /**
33    * {@inheritdoc}
34    */
35   public function getId() {
36     return $this->value;
37   }
38
39 }