You are here

responsive_menu_test.module in Responsive and off-canvas menu 4.3.x

Same filename and directory in other branches
  1. 4.4.x tests/modules/responsive_menu_test/responsive_menu_test.module

File

tests/modules/responsive_menu_test/responsive_menu_test.module
View source
<?php

/**
 * Implements hook_responsive_menu_off_canvas_output().
 */
function responsive_menu_test_responsive_menu_off_canvas_output_alter(&$output) {
  $theme = \Drupal::service('theme.manager')
    ->getActiveTheme()
    ->getName();
  if ($theme === 'bartik') {
    $output = FALSE;
  }
}

Functions

Namesort descending Description
responsive_menu_test_responsive_menu_off_canvas_output_alter Implements hook_responsive_menu_off_canvas_output().