You are here

public function GlobalVariable::getDependency in More Global Variables 8

Dependency getter.

Parameters

string $id: Name of dependency.

Return value

array|mixed Value of dependent global variable.

File

src/Plugin/GlobalVariable.php, line 44

Class

GlobalVariable
Class GlobalVariable.

Namespace

Drupal\mgv\Plugin

Code

public function getDependency($id) {
  return empty($this->dependency[$id]) ? NULL : $this->dependency[$id];
}