Issue #2002408 by fmizzell: Rename Views method cache_get() to cacheGet().

8.0.x
Alex Pott 2013-06-11 13:43:08 +01:00
parent f8b6ec887f
commit fc827a81fa
3 changed files with 6 additions and 5 deletions

View File

@ -142,7 +142,7 @@ abstract class CachePluginBase extends PluginBase {
*
* A plugin should override this to provide specialized caching behavior.
*/
function cache_get($type) {
public function cacheGet($type) {
$cutoff = $this->cacheExpire($type);
switch ($type) {
case 'query':

View File

@ -31,11 +31,11 @@ class None extends CachePluginBase {
/**
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cache_get().
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cacheGet().
*
* Replace the cache get logic so it does not return a cache item at all.
*/
function cache_get($type) {
public function cacheGet($type) {
return FALSE;
}

View File

@ -1178,7 +1178,8 @@ class ViewExecutable {
else {
$cache = $this->display_handler->getPlugin('cache');
}
if ($cache->cache_get('results')) {
if ($cache->cacheGet('results')) {
if ($this->pager->usePager()) {
$this->pager->total_items = $this->total_rows;
$this->pager->updatePageInfo();
@ -1238,7 +1239,7 @@ class ViewExecutable {
$cache = $this->display_handler->getPlugin('cache');
}
if ($cache && $cache->cache_get('output')) {
if ($cache && $cache->cacheGet('output')) {
}
else {
if ($cache) {