You are here

public function PreCacheEvent::setViewData in Views Json Source 8

Set the data for this event.

Parameters

string $data: The data to override view result data.

File

src/Event/PreCacheEvent.php, line 71

Class

PreCacheEvent
Class PreCacheEvent.

Namespace

Drupal\views_json_source\Event

Code

public function setViewData(string $data) {
  $this->data = $data;
}