You are here

public function ViewEventVariables::getView in Hook Event Dispatcher 8

Get the view.

Return value

\Drupal\views\ViewExecutable View.

File

src/Event/Preprocess/Variables/ViewEventVariables.php, line 26

Class

ViewEventVariables
Class ViewEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

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