function SystemHooks::elementInfoAlter

Same name and namespace in other branches
  1. 11.x core/modules/system/src/Hook/SystemHooks.php \Drupal\system\Hook\SystemHooks::elementInfoAlter()

Implements hook_element_info_alter().

Attributes

#[Hook('element_info_alter')]

File

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

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,
    ];
  }
}

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