class HelpThemeHooks

Hook implementations for help.

Hierarchy

Expanded class hierarchy of HelpThemeHooks

File

core/modules/help/src/Hook/HelpThemeHooks.php, line 10

Namespace

Drupal\help\Hook
View source
class HelpThemeHooks {
  
  /**
   * @file
   */

  
  /**
   * Implements hook_preprocess_HOOK() for block templates.
   */
  public function preprocessBlock(&$variables) : void {
    if ($variables['plugin_id'] == 'help_block') {
      $variables['attributes']['role'] = 'complementary';
    }
  }

}

Members

Title Sort descending Modifiers Object type Summary
HelpThemeHooks::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.