Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 8 |
| PluginID | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 8 |
| get | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 6 |
|||
| getId | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\Component\Annotation\PluginID. | |
| */ | |
| namespace Drupal\Component\Annotation; | |
| /** | |
| * Defines a Plugin annotation object that just contains an ID. | |
| * | |
| * @Annotation | |
| */ | |
| class PluginID extends AnnotationBase { | |
| /** | |
| * The plugin ID. | |
| * | |
| * When an annotation is given no key, 'value' is assumed by Doctrine. | |
| * | |
| * @var string | |
| */ | |
| public $value; | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function get() { | |
| return array( | |
| 'id' => $this->value, | |
| 'class' => $this->class, | |
| 'provider' => $this->provider, | |
| ); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getId() { | |
| return $this->value; | |
| } | |
| } |