You are here

public function ManagedAdBlock::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/ManagedAdBlock.php, line 286

Class

ManagedAdBlock
Provides an AdSense managed ad block.

Namespace

Drupal\adsense\Plugin\Block

Code

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