function PluginID::get

Same name in this branch
  1. 11.x core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::get()
Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::get()
  2. 8.9.x core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::get()
  3. 10 core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::get()
  4. 10 core/lib/Drupal/Component/Plugin/Attribute/PluginID.php \Drupal\Component\Plugin\Attribute\PluginID::get()

Overrides AttributeBase::get

File

core/lib/Drupal/Component/Plugin/Attribute/PluginID.php, line 14

Class

PluginID
Defines a Plugin attribute object that just contains an ID.

Namespace

Drupal\Component\Plugin\Attribute

Code

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.