function PluginID::get

Same name in this branch
  1. 11.x core/lib/Drupal/Component/Plugin/Attribute/PluginID.php \Drupal\Component\Plugin\Attribute\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 AnnotationInterface::get

File

core/lib/Drupal/Component/Annotation/PluginID.php, line 24

Class

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

Namespace

Drupal\Component\Annotation

Code

public function get() {
    return [
        'id' => $this->value,
        'class' => $this->class,
        'provider' => $this->provider,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.