outside_in_block_view_alter

outside_in_block_view_alter(array &$build)

Implements hook_block_view_alter().

File

core/modules/outside_in/outside_in.module, line 51
Allows configuring blocks and other configuration from the site front-end.

Code

function outside_in_block_view_alter(array &$build) {
  // Force a new 'data-contextual-id' attribute on blocks when this module is
  // enabled so as not to reuse stale data cached client-side.
  // @todo Remove when https://www.drupal.org/node/2773591 is fixed.
  $build['#contextual_links']['outside_in'] = [
    'route_parameters' => [],
  ];
}
doc_Drupal
2016-10-29 09:32:43
Comments
Leave a Comment

Please login to continue.