You are here

function Time::get_lifespan in Views (for Drupal 7) 8.3

3 calls to Time::get_lifespan()
Time::cache_expire in lib/Drupal/views/Plugin/views/cache/Time.php
Determine the expiration time of the cache type, or NULL if no expire.
Time::cache_set_expire in lib/Drupal/views/Plugin/views/cache/Time.php
Determine expiration time in the cache table of the cache type or CACHE_PERMANENT if item shouldn't be removed automatically from cache.
Time::summaryTitle in lib/Drupal/views/Plugin/views/cache/Time.php
Return a string to display as the clickable title for the access control.

File

lib/Drupal/views/Plugin/views/cache/Time.php, line 105
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

function get_lifespan($type) {
  $lifespan = $this->options[$type . '_lifespan'] == 'custom' ? $this->options[$type . '_lifespan_custom'] : $this->options[$type . '_lifespan'];
  return $lifespan;
}