PluginID.php
Same filename in this branch
Same filename and directory in other branches
- 11.x core/lib/Drupal/Component/Annotation/PluginID.php
- 11.x core/lib/Drupal/Component/Plugin/Attribute/PluginID.php
- 10 core/lib/Drupal/Component/Annotation/PluginID.php
- 10 core/lib/Drupal/Component/Plugin/Attribute/PluginID.php
- 9 core/lib/Drupal/Component/Annotation/PluginID.php
- 8.9.x core/lib/Drupal/Component/Annotation/PluginID.php
Namespace
Drupal\Component\Plugin\AttributeFile
-
core/
lib/ Drupal/ Component/ Plugin/ Attribute/ PluginID.php
View source
<?php
namespace Drupal\Component\Plugin\Attribute;
/**
* Defines a Plugin attribute object that just contains an ID.
*/
class PluginID extends AttributeBase {
/**
* {@inheritdoc}
*/
public function get() : array {
return [
'id' => $this->getId(),
'class' => $this->getClass(),
'provider' => $this->getProvider(),
];
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| PluginID | Defines a Plugin attribute object that just contains an ID. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.