public function AbstractEventVariables::remove in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Variables/AbstractEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables::remove()
Remove a given variable.
Parameters
string $name: Variable name.
1 method overrides AbstractEventVariables::remove()
- PageEventVariables::remove in modules/
preprocess_event_dispatcher/ src/ Variables/ PageEventVariables.php - Remove a given page variable.
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ AbstractEventVariables.php, line 64
Class
- AbstractEventVariables
- Class AbstractEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function remove(string $name) : void {
unset($this->variables[$name]);
}