You are here

public function ViewsPreViewEvent::__construct in Hook Event Dispatcher 8

ViewsPreExecuteEevent constructor.

Parameters

\Drupal\views\ViewExecutable $view: The view object about to be processed.

string $displayId: The machine name of the active display.

array $arguments: An array of arguments passed into the view.

Overrides BaseViewsEvent::__construct

File

src/Event/Views/ViewsPreViewEvent.php, line 37

Class

ViewsPreViewEvent
Class ViewsPreRenderEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Views

Code

public function __construct(ViewExecutable $view, $displayId, array &$arguments) {
  parent::__construct($view);
  $this->displayId = $displayId;
  $this->arguments =& $arguments;
}