You are here

function system_element_info_alter in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/system.module \system_element_info_alter()
  2. 10 core/modules/system/system.module \system_element_info_alter()

Implements hook_element_info_alter().

File

core/modules/system/system.module, line 1401
Configuration system that lets administrators modify the workings of the site.

Code

function system_element_info_alter(&$type) {
  if (isset($type['page'])) {
    $type['page']['#theme_wrappers']['off_canvas_page_wrapper'] = [
      '#weight' => -1000,
    ];
  }
}