case 'query':
// Not supported currently, but this is certainly where we'd put it.
return FALSE;
case 'results':
// Values to set: $view->result, $view->total_rows, $view->execute_time,
// $view->current_page.
if ($cache = \Drupal::
cache($this->resultsBin
)->
get($this->
generateResultsKey())) { if (!
$cutoff ||
$cache->created >
$cutoff) { $this->view->result =
$cache->data
['result'
];
// Load entities for each result.
$this->view->query->
loadEntities($this->view->result
);
$this->view->total_rows =
$cache->data
['total_rows'
];
$this->view->
setCurrentPage($cache->data
['current_page'
], TRUE
);
$this->view->execute_time = 0;
return TRUE;
} } return FALSE;
} } /**
* Clear out cached data for a view.
*/