function simple_mobile_menu_page_bottom in Simple Mobile Menu 8
Same name and namespace in other branches
- 8.2 simple_mobile_menu.module \simple_mobile_menu_page_bottom()
File
- ./
simple_mobile_menu.module, line 31 - Contains simple_mobile_menu.module
Code
function simple_mobile_menu_page_bottom(&$page) {
// Don't apply this for admin routes.
if (\Drupal::service('router.admin_context')
->isAdminRoute()) {
return;
}
// Get the configuration.
$config = \Drupal::config('simple_mobile_menu.settings');
// Add the javascript behaviours.
// $output['#attached']['library'][] = 'simple_mobile_menu/simple_mobile_menu.script';
// Add the module's css file if the user does not want to disable it.
if ($config
->get('include_css')) {
$output['#attached']['library'][] = 'simple_mobile_menu/simple_mobile_menu.styling';
}
}