diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php b/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php index 537c40eb84faf213e031efb5e7f4a03e120258ec..d376a93109920f449a31409b4ea7819099b67203 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php @@ -97,18 +97,18 @@ public function validateOptionsForm(&$form, &$form_state) { } public function summaryTitle() { - $results_lifespan = $this->get_lifespan('results'); - $output_lifespan = $this->get_lifespan('output'); + $results_lifespan = $this->getLifespan('results'); + $output_lifespan = $this->getLifespan('output'); return format_interval($results_lifespan, 1) . '/' . format_interval($output_lifespan, 1); } - function get_lifespan($type) { + protected function getLifespan($type) { $lifespan = $this->options[$type . '_lifespan'] == 'custom' ? $this->options[$type . '_lifespan_custom'] : $this->options[$type . '_lifespan']; return $lifespan; } function cache_expire($type) { - $lifespan = $this->get_lifespan($type); + $lifespan = $this->getLifespan($type); if ($lifespan) { $cutoff = REQUEST_TIME - $lifespan; return $cutoff; @@ -119,7 +119,7 @@ function cache_expire($type) { } function cache_set_expire($type) { - $lifespan = $this->get_lifespan($type); + $lifespan = $this->getLifespan($type); if ($lifespan) { return time() + $lifespan; }