public function CustomSearchAdBlock::getCacheMaxAge in Google AdSense integration 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 ContextAwarePluginBase::getCacheMaxAge
File
- src/
Plugin/ Block/ CustomSearchAdBlock.php, line 166
Class
- CustomSearchAdBlock
- Provides an AdSense Custom Search ad block.
Namespace
Drupal\adsense\Plugin\BlockCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}