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

Gets the unique ID for this annotated class.

Return value

string

Overrides AnnotationInterface::getId

1 method overrides AnnotationBase::getId()
PluginID::getId in core/lib/Drupal/Component/Annotation/PluginID.php
Gets the unique ID for this annotated class.

File

core/lib/Drupal/Component/Annotation/AnnotationBase.php, line 48

Class

AnnotationBase
Provides a base class for classed annotations.

Namespace

Drupal\Component\Annotation

Code

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