public function EntityReference::getCacheMaxAge in Views Entity Reference Filter 8
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
- src/
Plugin/ views/ filter/ EntityReference.php, line 226
Class
- EntityReference
- Provides a Views filter for entity reference fields.
Namespace
Drupal\verf\Plugin\views\filterCode
public function getCacheMaxAge() {
$cache_max_age = Cache::mergeMaxAges(parent::getCacheMaxAge(), $this->view->storage
->getCacheMaxAge());
return $cache_max_age;
}