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

Breadcrumb

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

function language_preprocess_block

Implements hook_preprocess_HOOK() for block templates.

File

core/modules/language/language.module, line 132

Code

function language_preprocess_block(&$variables) : void {
    if ($variables['configuration']['provider'] == 'language') {
        $variables['attributes']['role'] = 'navigation';
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal