function Time::get_lifespan

3 calls to Time::get_lifespan()
Time::cache_expire in drupal/core/modules/views/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 drupal/core/modules/views/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 drupal/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
Return a string to display as the clickable title for the access control.

File

drupal/core/modules/views/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;
}