help_topics.module

Same filename in other branches
  1. 9 core/modules/help_topics/help_topics.module
  2. 8.9.x core/modules/help_topics/help_topics.module
  3. 11.x core/modules/help_topics/help_topics.module

Displays help topics provided by modules and themes.

File

core/modules/help_topics/help_topics.module

View source
<?php


/**
 * @file
 * Displays help topics provided by modules and themes.
 */
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;

/**
 * Implements hook_help().
 */
function help_topics_help($route_name, RouteMatchInterface $route_match) {
    if ($route_name == 'help.page.help_topics') {
        $help_home = Url::fromRoute('help.main')->toString();
        $output = '<h2>' . t('About') . '</h2>';
        $output .= '<p>' . t('The Help Topics module has been moved to the Help module.') . '</p>';
        $output .= '<p>' . t('See the <a href=":help_page">Help page</a> to view topics.', [
            ':help_page' => $help_home,
        ]) . '</p>';
        return [
            '#markup' => $output,
        ];
    }
}

Functions

Title Deprecated Summary
help_topics_help Implements hook_help().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.