You are here

function responsive_menu_help in Responsive and off-canvas menu 4.0.x

Same name and namespace in other branches
  1. 8.3 responsive_menu.module \responsive_menu_help()
  2. 8.2 responsive_menu.module \responsive_menu_help()
  3. 4.4.x responsive_menu.module \responsive_menu_help()
  4. 4.1.x responsive_menu.module \responsive_menu_help()
  5. 4.3.x responsive_menu.module \responsive_menu_help()

Implements hook_help().

File

./responsive_menu.module, line 20
Contains procedural code.

Code

function responsive_menu_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'responsive_menu.settings':
      $readme = Link::fromTextAndUrl('README.md', Url::fromUri('base:' . drupal_get_path('module', 'responsive_menu') . '/README.md'))
        ->toRenderable();
      return '<p>' . t('3rd party libraries are required to enable some of the features. See the @readme file for more information about where to download and place them.', [
        '@readme' => render($readme),
      ]) . '</p><p>' . t("At a minimum you need to place the 'Responsive menu mobile icon' block in a region. If you want to display a horizontal menu at a specified breakpoint then you also need to place the 'Horizontal menu' block, although this is optional.") . '</p>';
  }
}