You are here

public function CalendarSystemsBlock::getCacheMaxAge in Calendar Systems 8.3

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/CalendarSystemsBlock.php, line 118

Class

CalendarSystemsBlock
Provides a block to show a localized current/relative date.

Namespace

Drupal\calendar_systems\Plugin\Block

Code

public function getCacheMaxAge() {
  $config = $this
    ->getConfiguration();
  return isset($config['cache']) ? $config['cache'] : 3600;
}