function system_element_info_alter in Drupal 9
Same name and namespace in other branches
- 8 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 1253 - 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,
];
}
}