You are here

public function PreCacheEvent::__construct in Views Json Source 8

Constructs the object.

Parameters

\Drupal\views\ViewExecutable $viewExecutable: The view executable.

string $data: The views json query result body.

File

src/Event/PreCacheEvent.php, line 40

Class

PreCacheEvent
Class PreCacheEvent.

Namespace

Drupal\views_json_source\Event

Code

public function __construct(ViewExecutable $viewExecutable, string $data) {
  $this->viewExecutable = $viewExecutable;
  $this->data = $data;
}