function book_preprocess_block

Implements hook_preprocess_HOOK() for block.html.twig.

File

drupal/core/modules/book/book.module, line 956
Allows users to create and organize related content in an outline.

Code

function book_preprocess_block(&$variables) {
  if ($variables['configuration']['module'] == 'book') {
    $variables['attributes']['role'] = 'navigation';
  }
}