function system_element_info_alter
Same name in other branches
- 8.9.x core/modules/system/system.module \system_element_info_alter()
- 10 core/modules/system/system.module \system_element_info_alter()
Implements hook_element_info_alter().
File
-
core/
modules/ system/ system.module, line 1268
Code
function system_element_info_alter(&$type) {
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.