class PluginID in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/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
Related topics
2 files declare their use of PluginID
- RenderElement.php in core/
lib/ Drupal/ Core/ Render/ Annotation/ RenderElement.php - Contains \Drupal\Core\Render\Annotation\RenderElement.
- ViewsHandlerAnnotationBase.php in core/
modules/ views/ src/ Annotation/ ViewsHandlerAnnotationBase.php - Contains \Drupal\views\Annotation\ViewsHandlerAnnotationBase.
8 classes are annotated with PluginID
- CckMigration in core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ builder/ d6/ CckMigration.php - Plugin annotation @PluginID("d6_cck_migration");
- Messages in core/
modules/ views/ src/ Plugin/ views/ area/ Messages.php - Provides an area for messages.
- Node in core/
modules/ node/ src/ Plugin/ migrate/ builder/ d6/ Node.php - Plugin annotation @PluginID("d6_node");
- Node in core/
modules/ node/ src/ Plugin/ migrate/ builder/ d7/ Node.php - Plugin annotation @PluginID("d7_node");
- ProfileValues in core/
modules/ user/ src/ Plugin/ migrate/ builder/ d6/ ProfileValues.php - Plugin annotation @PluginID("d6_profile_values");
File
- core/
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. | 1 |
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:: |