Same name and namespace in other branches
  1. 5.0.x modules/views_slideshow_cycle/views_slideshow_cycle.module \views_slideshow_cycle_help() 1 comment
  2. 7.x-3.x contrib/views_slideshow_cycle/views_slideshow_cycle.module \views_slideshow_cycle_help() 1 comment
  3. 8.x-4.x modules/views_slideshow_cycle/views_slideshow_cycle.module \views_slideshow_cycle_help() 1 comment

Implements hook_help().

File

modules/views_slideshow_cycle/views_slideshow_cycle.module, line 16

Code

function views_slideshow_cycle_help($route_name, RouteMatchInterface $route_match) {
    switch ($route_name) {
        case 'help.page.views_slideshow_cycle':
            if (\Drupal::moduleHandler()->moduleExists('advanced_help')) {
                $output = '<p>' . \Drupal::l('Click here to view the documentation for Views Slideshow Cycle.', Url::fromRoute('advanced_help.module_index', array(
                    'module' => 'views_slideshow_cycle',
                ))) . '</p>';
            }
            else {
                $output = '<p>' . t('Views Slideshow Cycle help can be found by installing and enabling the !advanced_help', array(
                    '!advanced_help' => \Drupal::l(t('Advanced Help module'), Url::fromUri('http://drupal.org/project/advanced_help')),
                )) . '</p>';
            }
            return $output;
    }
}