function block_install
Same name in other branches
- 7.x modules/block/block.install \block_install()
- 9 core/modules/block/block.install \block_install()
- 8.9.x core/modules/block/block.install \block_install()
- 11.x core/modules/block/block.install \block_install()
Implements hook_install().
File
-
core/
modules/ block/ block.install, line 13
Code
function block_install() {
// Because the Block module upon installation unconditionally overrides all
// HTML output by selecting a different page display variant, we must
// invalidate all cached HTML output.
Cache::invalidateTags([
'rendered',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.