class Mgv in More Global Variables 8
Class Mgv.
@package Drupal\mgv\Annotation
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\mgv\Annotation\Mgv
Expanded class hierarchy of Mgv
File
- src/
Annotation/ Mgv.php, line 14
Namespace
Drupal\mgv\AnnotationView source
class Mgv extends Plugin {
/**
* Variable name.
*
* @var string
*/
public $id;
/**
* Dependencies to other variable values.
*
* @var array
*/
public $variableDependencies = [];
/**
* Variable name.
*
* @return string
* Variable name.
*/
public function getName() {
return $this->id;
}
/**
* Dependencies to other variable values.
*
* @return \array[]
* Dependencies to other variable values.
*/
public function getVariableDependencies() {
return empty($this->variableDependencies) || !is_array($this->variableDependencies) ? [] : $this->variableDependencies;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Mgv:: |
public | property | Variable name. | |
Mgv:: |
public | property | Dependencies to other variable values. | |
Mgv:: |
public | function | Variable name. | |
Mgv:: |
public | function | Dependencies to other variable values. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
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. | 2 |