function PluginID::get

Same name in other branches
  1. 9 core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::get()
  2. 10 core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::get()
  3. 10 core/lib/Drupal/Component/Plugin/Attribute/PluginID.php \Drupal\Component\Plugin\Attribute\PluginID::get()
  4. 11.x core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::get()
  5. 11.x 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.