class Name in Plug 7
Defines a Name annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\plug_example\Annotation\Name
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
File
- modules/
plug_example/ src/ Annotation/ Name.php, line 19 - Contains \Drupal\plug_example\Annotation\Name.
Namespace
Drupal\plug_example\AnnotationView source
class Name extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The type of the name.
*
* @var bool
*/
public $company;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Name:: |
public | property | The type of the name. | |
Name:: |
public | property | The plugin ID. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. |