You are here

public function DsCacheTestBlock::getCacheMaxAge in Display Suite 8.3

Same name and namespace in other branches
  1. 8.4 tests/modules/ds_test/src/Plugin/Block/DsCacheTestBlock.php \Drupal\ds_test\Plugin\Block\DsCacheTestBlock::getCacheMaxAge()
  2. 8.2 tests/modules/ds_test/src/Plugin/Block/DsCacheTestBlock.php \Drupal\ds_test\Plugin\Block\DsCacheTestBlock::getCacheMaxAge()

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

tests/modules/ds_test/src/Plugin/Block/DsCacheTestBlock.php, line 51

Class

DsCacheTestBlock
Defines a Display suite cache test block.

Namespace

Drupal\ds_test\Plugin\Block

Code

public function getCacheMaxAge() {
  return 30;
}