Verified Commit 31e7810e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3433019 by andypost, catch: Replace deprecated help_topics module with obsolete stub

parent 80139bdb
Loading
Loading
Loading
Loading
Loading
+3 −2
Changes for core/modules/help_topics/help_topics.info.yml: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,8 +2,9 @@ name: Help Topics
type: module
description: 'Displays help topics provided by themes and modules.'
package: Core (Experimental)
lifecycle: deprecated
lifecycle_link: https://www.drupal.org/node/3223395#s-help_topics
lifecycle: obsolete
lifecycle_link: https://www.drupal.org/node/3223395#s-help-topics
version: VERSION
dependencies:
  - drupal:help
hidden: true
+0 −24
Changes for core/modules/help_topics/help_topics.module: 0 added lines, 24 removed lines.
Original line number Diff line number Diff line
<?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];
  }
}
+0 −17
Changes for core/modules/help_topics/src/Controller/HelpTopicPluginController.php: 0 added lines, 17 removed lines.
Original line number Diff line number Diff line
<?php

namespace Drupal\help_topics\Controller;

use Drupal\help\Controller\HelpTopicPluginController as CoreHelpTopicPluginController;

/**
 * Controller for help topic plugins.
 *
 * @internal
 *   Help Topic is currently experimental and should only be leveraged by
 *   experimental modules and development releases of contributed modules.
 *   See https://www.drupal.org/core/experimental for more information.
 */
class HelpTopicPluginController extends CoreHelpTopicPluginController {

}
+0 −17
Changes for core/modules/help_topics/src/HelpBreadcrumbBuilder.php: 0 added lines, 17 removed lines.
Original line number Diff line number Diff line
<?php

namespace Drupal\help_topics;

use Drupal\help\HelpBreadcrumbBuilder as CoreHelpBreadcrumbBuilder;

/**
 * Provides a breadcrumb builder for help topic pages.
 *
 * @internal
 *   Help Topics is currently experimental and should only be leveraged by
 *   experimental modules and development releases of contributed modules.
 *   See https://www.drupal.org/core/experimental for more information.
 */
class HelpBreadcrumbBuilder extends CoreHelpBreadcrumbBuilder {

}
+0 −17
Changes for core/modules/help_topics/src/HelpSectionManager.php: 0 added lines, 17 removed lines.
Original line number Diff line number Diff line
<?php

namespace Drupal\help_topics;

use Drupal\help\HelpSectionManager as CoreHelpSectionManager;

/**
 * Decorates the Help Section plugin manager to provide help topic search.
 *
 * @internal
 *   Help Topics is currently experimental and should only be leveraged by
 *   experimental modules and development releases of contributed modules.
 *   See https://www.drupal.org/core/experimental for more information.
 */
class HelpSectionManager extends CoreHelpSectionManager {

}
Loading