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
1 2 3 4 5 6 7 8 | 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' => [], ]; } |
Please login to continue.