Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::getId()
  2. 9 core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::getId()

Gets the unique ID for this annotated class.

Return value

string

Overrides AnnotationBase::getId

File

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

Class

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

Namespace

Drupal\Component\Annotation

Code

public function getId() {
  return $this->value;
}