You are here

function simple_mobile_menu_page_bottom in Simple Mobile Menu 8.2

Same name and namespace in other branches
  1. 8 simple_mobile_menu.module \simple_mobile_menu_page_bottom()

Implements hook_page_bottom().

File

./simple_mobile_menu.module, line 29
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 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';
  }
}