You are here

public function ViewEventVariables::getView in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Variables/ViewEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\ViewEventVariables::getView()

Get the view.

Return value

\Drupal\views\ViewExecutable View.

File

modules/preprocess_event_dispatcher/src/Variables/ViewEventVariables.php, line 28

Class

ViewEventVariables
Class ViewEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getView() : ViewExecutable {
  return $this->variables['view'];
}