public function AttachedRenderingBlock::getCacheMaxAge in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php \Drupal\render_attached_test\Plugin\Block\AttachedRenderingBlock::getCacheMaxAge()
- 9 core/modules/system/tests/modules/render_attached_test/src/Plugin/Block/AttachedRenderingBlock.php \Drupal\render_attached_test\Plugin\Block\AttachedRenderingBlock::getCacheMaxAge()
Overrides ContextAwarePluginTrait::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\BlockCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}