function system_element_info_alter
Same name in other branches
- 9 core/modules/system/system.module \system_element_info_alter()
- 8.9.x core/modules/system/system.module \system_element_info_alter()
- 11.x core/modules/system/system.module \system_element_info_alter()
Implements hook_element_info_alter().
File
-
core/
modules/ system/ system.module, line 1198
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.