class MenuUiThemeHooks

Hook implementations for menu_ui.

Hierarchy

Expanded class hierarchy of MenuUiThemeHooks

File

core/modules/menu_ui/src/Hook/MenuUiThemeHooks.php, line 10

Namespace

Drupal\menu_ui\Hook
View source
class MenuUiThemeHooks {
  
  /**
   * Implements hook_preprocess_HOOK() for block templates.
   */
  public function preprocessBlock(&$variables) : void {
    if ($variables['configuration']['provider'] == 'menu_ui') {
      $variables['attributes']['role'] = 'navigation';
    }
  }

}

Members

Title Sort descending Modifiers Object type Summary
MenuUiThemeHooks::preprocessBlock public function Implements hook_preprocess_HOOK() for block templates.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.