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

Breadcrumb

  1. Drupal Core 11.1.x
  2. SystemHooks.php

function SystemHooks::elementInfoAlter

Implements hook_element_info_alter().

File

core/modules/system/src/Hook/SystemHooks.php, line 385

Class

SystemHooks
Hook implementations for system.

Namespace

Drupal\system\Hook

Code

public function elementInfoAlter(&$type) : void {
    if (isset($type['page'])) {
        $type['page']['#theme_wrappers']['off_canvas_page_wrapper'] = [
            '#weight' => -1000,
        ];
    }
}
RSS feed
Powered by Drupal