
| Current Path : /var/www/html/rocksensor2/web/core/lib/Drupal/Component/Annotation/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor2/web/core/lib/Drupal/Component/Annotation/PluginID.php |
<?php
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 [
'id' => $this->value,
'class' => $this->class,
'provider' => $this->provider,
];
}
/**
* {@inheritdoc}
*/
public function getId() {
return $this->value;
}
}