You are here

public function PageEventVariables::remove in Hook Event Dispatcher 8.2

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

Code

public function remove(string $name) : void {
  unset($this->variables['page'][$name]);
}