public function PluginId::getCacheMaxAge in Plugin 8.2
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/ PluginId.php, line 118
Class
- PluginId
- Provides a Views filter for plugin IDs.
Namespace
Drupal\plugin\Plugin\views\filterCode
public function getCacheMaxAge() {
return $this
->getCacheableMetadata()
->getCacheMaxAge();
}