class PluginID
Same name in this branch
- main core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID
Same name and namespace in other branches
- 11.x core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID
- 11.x core/lib/Drupal/Component/Plugin/Attribute/PluginID.php \Drupal\Component\Plugin\Attribute\PluginID
- 10 core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID
- 10 core/lib/Drupal/Component/Plugin/Attribute/PluginID.php \Drupal\Component\Plugin\Attribute\PluginID
- 9 core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID
- 8.9.x core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID
Defines a Plugin attribute object that just contains an ID.
Attributes
#[\Attribute(\Attribute::TARGET_CLASS)]
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
- class \Drupal\Component\Plugin\Attribute\PluginID extends \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of PluginID
12 files declare their use of PluginID
- MigrateFieldPluginManager.php in core/
modules/ migrate_drupal/ src/ Plugin/ MigrateFieldPluginManager.php - MigratePluginManager.php in core/
modules/ migrate/ src/ Plugin/ MigratePluginManager.php - NullIdMap.php in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ NullIdMap.php - PluginIdTest.php in core/
tests/ Drupal/ Tests/ Component/ Plugin/ Attribute/ PluginIdTest.php - PluginManager.php in core/
modules/ system/ tests/ modules/ lazy_route_provider_install_test/ src/ PluginManager.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ Attribute/ PluginID.php, line 8
Namespace
Drupal\Component\Plugin\AttributeView source
class PluginID extends AttributeBase {
/**
* {@inheritdoc}
*/
public function get() : array {
return [
'id' => $this->getId(),
'class' => $this->getClass(),
'provider' => $this->getProvider(),
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.