public function AbstractEventVariables::getByReference in Hook Event Dispatcher 8
Get a variable with a given name by reference.
Parameters
string $name: Variable name.
Return value
mixed Reference for the variable.
1 method overrides AbstractEventVariables::getByReference()
- PageEventVariables::getByReference in src/
Event/ Preprocess/ Variables/ PageEventVariables.php - Get a variable with a given name by reference.
File
- src/
Event/ Preprocess/ Variables/ AbstractEventVariables.php, line 83
Class
- AbstractEventVariables
- Class AbstractEventVariables.
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\VariablesCode
public function &getByReference($name) {
return $this->variables[$name];
}