PluginID.php
Same filename in this branch
Same filename in other branches
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.