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\EventCode
public function __construct(ViewExecutable $viewExecutable, string $data) {
$this->viewExecutable = $viewExecutable;
$this->data = $data;
}