You are here

protected function CachePluginBase::getDefaultCacheMaxAge in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getDefaultCacheMaxAge()

Returns the default cache max age.

1 call to CachePluginBase::getDefaultCacheMaxAge()
CachePluginBase::getCacheMaxAge in core/modules/views/src/Plugin/views/cache/CachePluginBase.php
Gets the max age for the current view.
2 methods override CachePluginBase::getDefaultCacheMaxAge()
Tag::getDefaultCacheMaxAge in core/modules/views/src/Plugin/views/cache/Tag.php
Returns the default cache max age.
Time::getDefaultCacheMaxAge in core/modules/views/src/Plugin/views/cache/Time.php
Returns the default cache max age.

File

core/modules/views/src/Plugin/views/cache/CachePluginBase.php, line 260
Contains \Drupal\views\Plugin\views\cache\CachePluginBase.

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

protected function getDefaultCacheMaxAge() {

  // The default cache backend is not caching anything.
  return 0;
}