class PluginID in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID
Defines a Plugin annotation object that just contains an ID.
Hierarchy
- class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterface
- class \Drupal\Component\Annotation\PluginID
Expanded class hierarchy of PluginID
3 files declare their use of PluginID
- Plugin4A.php in modules/
providers/ service_container_annotation_discovery/ tests/ modules/ service_container_annotation_discovery_test/ src/ Plugin/ Plugin4/ Plugin4A/ Plugin4A.php - Plugin5A.php in modules/
providers/ service_container_annotation_discovery/ tests/ modules/ service_container_annotation_discovery_test/ src/ Plugin/ Plugin5/ Plugin5A/ Plugin5A.php - Plugin8A.php in modules/
providers/ service_container_annotation_discovery/ tests/ modules/ service_container_annotation_discovery_subtest/ src/ Plugin/ Plugin8/ Plugin8A/ Plugin8A.php
File
- lib/
Drupal/ Component/ Annotation/ PluginID.php, line 15 - Contains \Drupal\Component\Annotation\PluginID.
Namespace
Drupal\Component\AnnotationView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AnnotationBase:: |
protected | property | The class used for this annotated class. | |
AnnotationBase:: |
public | property | The annotated class ID. | |
AnnotationBase:: |
protected | property | The provider of the annotated class. | |
AnnotationBase:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
PluginID:: |
public | property | The plugin ID. | |
PluginID:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
|
PluginID:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationBase:: |