function SystemHooks::elementInfoAlter
Implements hook_element_info_alter().
File
-
core/
modules/ system/ src/ Hook/ SystemHooks.php, line 385
Class
- SystemHooks
- Hook implementations for system.
Namespace
Drupal\system\HookCode
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.