function AttachedRenderingBlock::getCacheMaxAge

Same name in other branches
  1. 9 core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php \Drupal\render_attached_test\Plugin\Block\AttachedRenderingBlock::getCacheMaxAge()
  2. 10 core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php \Drupal\render_attached_test\Plugin\Block\AttachedRenderingBlock::getCacheMaxAge()
  3. 11.x core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php \Drupal\render_attached_test\Plugin\Block\AttachedRenderingBlock::getCacheMaxAge()

File

core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php, line 41

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.