You are here

class Name in Plug 7

Defines a Name annotation object.

Hierarchy

Expanded class hierarchy of Name

6 classes are annotated with Name
Acme in modules/plug_example/src/Plugin/name/Acme.php
Class Acme @package Drupal\plug_example\Plugin\name
AcmeTest in modules/plug_example/src/Plugin/name/AcmeTest.php
Class Acme @package Drupal\plug_example\Plugin\name
John in modules/plug_example/src/Plugin/name/John.php
Class John @package Drupal\plug_example\Plugin\name
JohnTest in modules/plug_example/src/Plugin/name/JohnTest.php
Class John @package Drupal\plug_example\Plugin\name
Mom in modules/plug_example/src/Plugin/name/Mom.php
Class Mom @package Drupal\plug_example\Plugins

... See full list

File

modules/plug_example/src/Annotation/Name.php, line 19
Contains \Drupal\plug_example\Annotation\Name.

Namespace

Drupal\plug_example\Annotation
View source
class Name extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The type of the name.
   *
   * @var bool
   */
  public $company;

}

Members

Namesort descending Modifiers Type Description Overrides
Name::$company public property The type of the name.
Name::$id public property The plugin ID.
Plugin::$definition protected property The plugin definition read from the class annotation.
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object.