function block_install in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block/block.install \block_install()
- 7 modules/block/block.install \block_install()
- 10 core/modules/block/block.install \block_install()
Implements hook_install().
File
- core/
modules/ block/ block.install, line 13 - Contains install and update functions for Block.
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',
]);
}