Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. help.module

function help_preprocess_block

Implements hook_preprocess_HOOK() for block templates.

File

core/modules/help/help.module, line 10

Code

function help_preprocess_block(&$variables) : void {
    if ($variables['plugin_id'] == 'help_block') {
        $variables['attributes']['role'] = 'complementary';
    }
}
RSS feed
Powered by Drupal