public function AbstractEventVariables::getByReference in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Variables/AbstractEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables::getByReference()
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 modules/
preprocess_event_dispatcher/ src/ Variables/ PageEventVariables.php - Get a variable with a given name by reference.
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ AbstractEventVariables.php, line 77
Class
- AbstractEventVariables
- Class AbstractEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function &getByReference(string $name) {
return $this->variables[$name];
}