You are here

public function AbstractEventVariables::getByReference in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 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\Variables

Code

public function &getByReference(string $name) {
  return $this->variables[$name];
}