You are here

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\Block

Code

public function getCacheMaxAge() {
  return Cache::PERMANENT;
}