class Plugin

Defines a Plugin annotation object.

Annotations in plugin classes can utilize this class in order to pass various metadata about the plugin through the parser to DiscoveryInterface::getDefinitions() calls. This allows the metadata of a class to be located with the class itself, rather than in module-based info hooks.

Hierarchy

Expanded class hierarchy of Plugin

161 files declare their use of Plugin
2 string references to 'Plugin'
146 classes are annotated with Plugin

File

drupal/core/lib/Drupal/Component/Annotation/Plugin.php, line 23
Contains Drupal\Component\Annotation\Plugin.

Namespace

Drupal\Component\Annotation
View source

Members

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definiton read from the class annotation.
Plugin::get public function Implements Drupal\Core\Annotation\AnnotationInterface::get(). Overrides AnnotationInterface::get
Plugin::parse protected function Parses an annotation into its definition.
Plugin::__construct public function Constructs a Plugin object.