public function PageEventVariables::set in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Variables/PageEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\PageEventVariables::set()
Set a given page variable.
Parameters
string $name: Name.
mixed $value: Value.
Overrides AbstractEventVariables::set
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ PageEventVariables.php, line 63
Class
- PageEventVariables
- Class PageEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function set(string $name, $value = NULL) : void {
$this->variables['page'][$name] = $value;
}