You are here

function d8cache_block_list_alter in Drupal 8 Cache Backport 7

Implements hook_block_list_alter().

File

includes/block.inc, line 11
Block functions and hooks for the D8 caching system backport.

Code

function d8cache_block_list_alter(&$blocks) {
  foreach ($blocks as $key => $block) {
    $block->drupal_cache_tags[] = 'block_list';
  }
}