ViewsData::cacheGet

protected ViewsData::cacheGet($cid)

Gets data from the cache backend.

Parameters

string $cid: The cache ID to return.

Return value

mixed The cached data, if any. This will immediately return FALSE if the $skipCache property is TRUE.

File

core/modules/views/src/ViewsData.php, line 194

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

protected function cacheGet($cid) {
  if ($this->skipCache) {
    return FALSE;
  }

  return $this->cacheBackend->get($this->prepareCid($cid));
}
doc_Drupal
2016-10-29 09:54:59
Comments
Leave a Comment

Please login to continue.