You are here

public function DisclaimerEmailBlock::getCacheMaxAge in Disclaimer 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/DisclaimerEmailBlock.php, line 91

Class

DisclaimerEmailBlock
Provides a 'DisclaimerEmailBlock' block.

Namespace

Drupal\disclaimer\Plugin\Block

Code

public function getCacheMaxAge() {
  return $this->configuration['max_age'];
}