function webform_bootstrap_test_module_preprocess_page in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_bootstrap/tests/modules/webform_bootstrap_test_module/webform_bootstrap_test_module.module \webform_bootstrap_test_module_preprocess_page()
Implements hook_preprocess_page().
File
- modules/
webform_bootstrap/ tests/ modules/ webform_bootstrap_test_module/ webform_bootstrap_test_module.module, line 18 - Installs and integrates the Webform Test Bootstrap theme.
Code
function webform_bootstrap_test_module_preprocess_page(&$variables) {
if (!_webform_bootstrap_is_active_theme()) {
return;
}
// Remove sidebar second from admin route.
if (\Drupal::routeMatch()
->getRouteObject()
->getOption('_admin_route')) {
$variables['page']['sidebar_second'] = NULL;
}
}