menu_ui_preprocess_block

menu_ui_preprocess_block(&$variables)

Implements hook_preprocess_HOOK() for block templates.

File

core/modules/menu_ui/menu_ui.module, line 494
Allows administrators to customize the site's navigation menus.

Code

function menu_ui_preprocess_block(&$variables) {
  if ($variables['configuration']['provider'] == 'menu_ui') {
    $variables['attributes']['role'] = 'navigation';
  }
}
doc_Drupal
2016-10-29 09:27:53
Comments
Leave a Comment

Please login to continue.