function ViewsData::cacheGet
Same name and namespace in other branches
- 11.x core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::cacheGet()
- 10 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::cacheGet()
- 9 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::cacheGet()
- 8.9.x core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::cacheGet()
Gets data from the cache backend.
Parameters
string $cid: The cache ID to return.
Return value
mixed The cached data.
Deprecated
in drupal:11.5.0 and is removed from drupal:12.0.0. There is no replacement.
See also
https://www.drupal.org/project/drupal/issues/3587797
File
-
core/
modules/ views/ src/ ViewsData.php, line 181
Class
- ViewsData
- Class to manage and lazy load cached views data.
Namespace
Drupal\viewsCode
protected function cacheGet($cid) {
@trigger_error(__METHOD__ . ' is deprecated in drupal:11.5.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/project/drupal/issues/3587797', E_USER_DEPRECATED);
return $this->cacheBackend
->get($this->prepareCid($cid));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.