You are here

class Mgv in More Global Variables 8

Class Mgv.

@package Drupal\mgv\Annotation

Hierarchy

Expanded class hierarchy of Mgv

File

src/Annotation/Mgv.php, line 14

Namespace

Drupal\mgv\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
Mgv::$id public property Variable name.
Mgv::$variableDependencies public property Dependencies to other variable values.
Mgv::getName public function Variable name.
Mgv::getVariableDependencies public function Dependencies to other variable values.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
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. 2