HelpThemeHooks.php

Namespace

Drupal\help\Hook

File

core/modules/help/src/Hook/HelpThemeHooks.php

View source
<?php

namespace Drupal\help\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for help.
 */
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';
    }
  }

}

Classes

Title Deprecated Summary
HelpThemeHooks Hook implementations for help.

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