From f13b87ca4b01345731cd2f7c7d4f70be34044dd6 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Wed, 5 Jun 2013 07:14:31 +0100 Subject: [PATCH] Issue #2002414 by theladebug: Rename Views method cache_start() to cacheStart(). --- .../lib/Drupal/views/Plugin/views/cache/CachePluginBase.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/cache/None.php | 2 +- core/modules/views/lib/Drupal/views/ViewExecutable.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php index 1974844d0d7..36110b00ee8 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php @@ -215,7 +215,7 @@ abstract class CachePluginBase extends PluginBase { * * @see drupal_add_html_head() */ - function cache_start() { + public function cacheStart() { $this->storage['head'] = drupal_add_html_head(); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/cache/None.php b/core/modules/views/lib/Drupal/views/Plugin/views/cache/None.php index f510248437f..70b7ba0ff5a 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/cache/None.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/cache/None.php @@ -23,7 +23,7 @@ use Drupal\Core\Annotation\Translation; */ class None extends CachePluginBase { - function cache_start() { /* do nothing */ } + public function cacheStart() { /* do nothing */ } public function summaryTitle() { return t('None'); diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index ad9c4417aa6..589a817f8b1 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -1242,7 +1242,7 @@ class ViewExecutable { } else { if ($cache) { - $cache->cache_start(); + $cache->cacheStart(); } // Run pre_render for the pager as it might change the result.