public function PageEventVariables::remove 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::remove()
Remove a given page variable.
Parameters
string $name: Name.
Overrides AbstractEventVariables::remove
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ PageEventVariables.php, line 73
Class
- PageEventVariables
- Class PageEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function remove(string $name) : void {
unset($this->variables['page'][$name]);
}