You are here

public function AttachedRenderingBlock::getCacheMaxAge in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php \Drupal\render_attached_test\Plugin\Block\AttachedRenderingBlock::getCacheMaxAge()

Overrides ContextAwarePluginBase::getCacheMaxAge

File

core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php, line 46
Contains \Drupal\render_attached_test\Plugin\Block\AttachedRenderingBlock.

Class

AttachedRenderingBlock
A block we can use to test caching of #attached headers.

Namespace

Drupal\render_attached_test\Plugin\Block

Code

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