Same name and namespace in other branches
  1. 7.x modules/block/block.install \block_install()
  2. 8.9.x core/modules/block/block.install \block_install()
  3. 9 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',
  ]);
}