function Plugin::get

Same name in other branches
  1. 9 core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin::get()
  2. 10 core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin::get()
  3. 11.x core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin::get()

Overrides AnnotationInterface::get

5 methods override Plugin::get()
ContextDefinition::get in core/lib/Drupal/Core/Annotation/ContextDefinition.php
Returns the value of an annotation.
EntityType::get in core/lib/Drupal/Core/Entity/Annotation/EntityType.php
Gets the value of an annotation.
Layout::get in core/lib/Drupal/Core/Layout/Annotation/Layout.php
Gets the value of an annotation.
SectionStorage::get in core/modules/layout_builder/src/Annotation/SectionStorage.php
Gets the value of an annotation.
TestAnnotation::get in core/tests/Drupal/Tests/Component/Annotation/Plugin/Discovery/AnnotationBridgeDecoratorTest.php
Gets the value of an annotation.

File

core/lib/Drupal/Component/Annotation/Plugin.php, line 73

Class

Plugin
Defines a Plugin annotation object.

Namespace

Drupal\Component\Annotation

Code

public function get() {
    return $this->definition;
}

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