You are here

public function HistoryUserTimestamp::getCacheMaxAge in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php \Drupal\history\Plugin\views\filter\HistoryUserTimestamp::getCacheMaxAge()

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides FilterPluginBase::getCacheMaxAge

File

core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php, line 104
Contains \Drupal\history\Plugin\views\filter\HistoryUserTimestamp.

Class

HistoryUserTimestamp
Filter for new content.

Namespace

Drupal\history\Plugin\views\filter

Code

public function getCacheMaxAge() {

  // This filter depends on the current time and therefore is never cacheable.
  return 0;
}