Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
32 merge requests!12227Issue #3181946 by jonmcl, mglaman,!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!9470[10.3.x-only-DO-NOT-MERGE]: #3331771 Fix file_get_contents(): Passing null to parameter,!8540Issue #3457061: Bootstrap Modal dialog Not closing after 10.3.0 Update,!8528Issue #3456871 by Tim Bozeman: Support NULL services,!8373Issue #3427374 by danflanagan8, Vighneshh: taxonomy_tid ViewsArgumentDefault...,!7526Expose roles in response,!7352Draft: Resolve #3203489 "Set filename as",!5423Draft: Resolve #3329907 "Test2",!3878Removed unused condition head title for views,!3818Issue #2140179: $entity->original gets stale between updates,!3742Issue #3328429: Create item list field formatter for displaying ordered and unordered lists,!3731Claro: role=button on status report items,!3651Issue #3347736: Create new SDC component for Olivero (header-search),!3531Issue #3336994: StringFormatter always displays links to entity even if the user in context does not have access,!3478Issue #3337882: Deleted menus are not removed from content type config,!3355Issue #3209129: Scrolling problems when adding a block via layout builder,!3154Fixes #2987987 - CSRF token validation broken on routes with optional parameters.,!3133core/modules/system/css/components/hidden.module.css,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2812Issue #3312049: [Followup] Fix Drupal.Commenting.FunctionComment.MissingReturnType returns for NULL,!2794Issue #3100732: Allow specifying `meta` data on JSON:API objects,!2378Issue #2875033: Optimize joins and table selection in SQL entity query implementation,!2062Issue #3246454: Add weekly granularity to views date sort,!1105Issue #3025039: New non translatable field on translatable content throws error,!1073issue #3191727: Focus states on mobile second level navigation items fixed,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!877Issue #2708101: Default value for link text is not saved,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493,!213Issue #2906496: Give Media a menu item under Content
Pipeline #129091 canceled
Pipeline: drupal

#129092

    Showing
    with 3 additions and 354 deletions
    ...@@ -2,8 +2,9 @@ name: Help Topics ...@@ -2,8 +2,9 @@ name: Help Topics
    type: module type: module
    description: 'Displays help topics provided by themes and modules.' description: 'Displays help topics provided by themes and modules.'
    package: Core (Experimental) package: Core (Experimental)
    lifecycle: deprecated lifecycle: obsolete
    lifecycle_link: https://www.drupal.org/node/3223395#s-help_topics lifecycle_link: https://www.drupal.org/node/3223395#s-help-topics
    version: VERSION version: VERSION
    dependencies: dependencies:
    - drupal:help - drupal:help
    hidden: true
    <?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];
    }
    }
    <?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 {
    }
    <?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 {
    }
    <?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 {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\HelpTopicDiscovery as CoreHelpTopicDiscovery;
    /**
    * Discovers help topic plugins from Twig files in help_topics directories.
    *
    * @see \Drupal\help_topics\HelpTopicTwig
    * @see \Drupal\help_topics\HelpTopicTwigLoader
    *
    * @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 HelpTopicDiscovery extends CoreHelpTopicDiscovery {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\HelpTopicPluginBase as CoreHelpTopicPluginBase;
    /**
    * Base class for help topic plugins.
    *
    * @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.
    */
    abstract class HelpTopicPluginBase extends CoreHelpTopicPluginBase {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\HelpTopicPluginInterface as CoreHelpTopicPluginInterface;
    /**
    * Defines an interface for help topic plugin classes.
    *
    * @see \Drupal\help_topics\HelpTopicPluginManager
    *
    * @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.
    */
    interface HelpTopicPluginInterface extends CoreHelpTopicPluginInterface {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\HelpTopicPluginManager as CoreHelpTopicPluginManager;
    /**
    * Provides the default help_topic manager.
    *
    * Modules and themes can provide help topics in .html.twig files called
    * provider.name_of_topic.html.twig inside the module or theme sub-directory
    * help_topics. The provider is validated to be the extension that provides the
    * help topic.
    *
    * The Twig file must contain YAML front matter with a key named 'label'. It can
    * also contain keys named 'top_level' and 'related'. For example:
    * @code
    * ---
    * label: 'Configuring error responses, including 403/404 pages'
    *
    * # Related help topics in an array.
    * related:
    * - core.config_basic
    * - core.maintenance
    *
    * # If the value is true then the help topic will appear on admin/help.
    * top_level: true
    * ---
    * @endcode
    *
    * In addition, modules wishing to add plugins can define them in a
    * module_name.help_topics.yml file, with the plugin ID as the heading for
    * each entry, and these properties:
    * - id: The plugin ID.
    * - class: The name of your plugin class, implementing
    * \Drupal\help_topics\HelpTopicPluginInterface.
    * - top_level: TRUE if the topic is top-level.
    * - related: Array of IDs of topics this one is related to.
    * - Additional properties that your plugin class needs, such as 'label'.
    *
    * You can also provide an entry that designates a plugin deriver class in your
    * help_topics.yml file, with a heading giving a prefix ID for your group of
    * derived plugins, and a 'deriver' property giving the name of a class
    * implementing \Drupal\Component\Plugin\Derivative\DeriverInterface. Example:
    * @code
    * my_module_prefix:
    * deriver: 'Drupal\my_module\Plugin\Deriver\HelpTopicDeriver'
    * @endcode
    *
    * @ingroup help_docs
    *
    * @see \Drupal\help_topics\HelpTopicDiscovery
    * @see \Drupal\help_topics\HelpTopicTwig
    * @see \Drupal\help_topics\HelpTopicTwigLoader
    * @see \Drupal\help_topics\HelpTopicPluginInterface
    * @see \Drupal\help_topics\HelpTopicPluginBase
    * @see hook_help_topics_info_alter()
    * @see plugin_api
    * @see \Drupal\Component\Plugin\Derivative\DeriverInterface
    *
    * @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 HelpTopicPluginManager extends CoreHelpTopicPluginManager {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\HelpTopicPluginManagerInterface as CoreHelpTopicPluginManagerInterface;
    /**
    * Defines an interface for managing help topics and storing their definitions.
    *
    * @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.
    */
    interface HelpTopicPluginManagerInterface extends CoreHelpTopicPluginManagerInterface {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\HelpTopicTwig as CoreHelpTopicTwig;
    /**
    * Represents a help topic plugin whose definition comes from a Twig file.
    *
    * @see \Drupal\help_topics\HelpTopicDiscovery
    * @see \Drupal\help_topics\HelpTopicTwigLoader
    * @see \Drupal\help_topics\HelpTopicPluginManager
    *
    * @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 HelpTopicTwig extends CoreHelpTopicTwig {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\HelpTopicTwigLoader as CoreHelpTopicTwigLoader;
    /**
    * Loads help topic Twig files from the filesystem.
    *
    * This loader adds module and theme help topic paths to a help_topics namespace
    * to the Twig filesystem loader so that help_topics can be referenced, using
    * '@help-topic/pluginId.html.twig'.
    *
    * @see \Drupal\help_topics\HelpTopicDiscovery
    * @see \Drupal\help_topics\HelpTopicTwig
    *
    * @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 HelpTopicTwigLoader extends CoreHelpTopicTwigLoader {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\HelpTwigExtension as CoreHelpTwigExtension;
    /**
    * Defines and registers Drupal Twig extensions for rendering help topics.
    *
    * @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 HelpTwigExtension extends CoreHelpTwigExtension {
    }
    <?php
    namespace Drupal\help_topics\Plugin\HelpSection;
    use Drupal\help\Plugin\HelpSection\HelpTopicSection as CoreHelpTopicSection;
    /**
    * Provides the help topics list section for the help page.
    *
    * @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 HelpTopicSection extends CoreHelpTopicSection {
    }
    <?php
    namespace Drupal\help_topics\Plugin\Search;
    use Drupal\help\Plugin\Search\HelpSearch as CoreHelpSearch;
    /**
    * Handles searching for help using the Search module index.
    *
    * Help items are indexed if their HelpSection plugin implements
    * \Drupal\help\HelpSearchInterface.
    *
    * @see \Drupal\help\HelpSearchInterface
    * @see \Drupal\help\HelpSectionPluginInterface
    *
    * @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 HelpSearch extends CoreHelpSearch {
    }
    <?php
    namespace Drupal\help_topics;
    use Drupal\help\SearchableHelpInterface as CoreSearchableHelpInterface;
    /**
    * Provides an interface for a HelpSection plugin that also supports search.
    *
    * @see \Drupal\help\HelpSectionPluginInterface
    *
    * @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.
    */
    interface SearchableHelpInterface extends CoreSearchableHelpInterface {
    }
    {#
    /**
    * @file
    * Default theme implementation to display a help topic.
    *
    * Available variables:
    * - body: The body of the topic.
    * - related: List of related topic links.
    *
    * @ingroup themeable
    */
    #}
    <article>
    {{ body }}
    {{ related }}
    </article>
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment