You are here

public function Time::summaryTitle in Views (for Drupal 7) 8.3

Return a string to display as the clickable title for the access control.

Overrides CachePluginBase::summaryTitle

File

lib/Drupal/views/Plugin/views/cache/Time.php, line 99
Definition of Drupal\views\Plugin\views\cache\Time.

Class

Time
Simple caching of query results for Views displays.

Namespace

Drupal\views\Plugin\views\cache

Code

public function summaryTitle() {
  $results_lifespan = $this
    ->get_lifespan('results');
  $output_lifespan = $this
    ->get_lifespan('output');
  return format_interval($results_lifespan, 1) . '/' . format_interval($output_lifespan, 1);
}