You are here

public function BlockFieldTestTimeBlock::getCacheMaxAge in Block field 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

tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestTimeBlock.php, line 31

Class

BlockFieldTestTimeBlock
Provides a 'Block field test time' block.

Namespace

Drupal\block_field_test\Plugin\Block

Code

public function getCacheMaxAge() {
  return 0;
}