function system_element_info_alter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/system.module \system_element_info_alter()
- 9 core/modules/system/system.module \system_element_info_alter()
Implements hook_element_info_alter().
File
- core/
modules/ system/ system.module, line 1257 - 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,
];
}
}