Add hook_help for the module and submodules

Created on 13 June 2023, over 1 year ago
Updated 14 June 2023, over 1 year ago

Problem/Motivation

Add hook_help for the module and submodules

📌 Task
Status

Fixed

Version

1.0

Component

Documentation

Created by

🇺🇦Ukraine Panchuk Volyn, Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Panchuk
  • Assigned to dineshkumarbollu
  • 🇮🇳India dineshkumarbollu

    I will look on this.

  • @dineshkumarbollu opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to RTBC over 1 year ago
  • 🇵🇭Philippines clarkssquared

    Hi dineshkumarbollu

    I applied your MR !35 to my local and confirmed that your patch created information to the module's hook help.

    Please look at the screenshot attached for your reference

    Thank you.

  • Status changed to Needs work over 1 year ago
  • 🇺🇦Ukraine Panchuk Volyn, Lutsk

    Hey @dineshkumarbollu, thanks for your contribution to Paragraphs Gridstack.

    Your changes look good, except for a few things:
    1) Please, take a look at coding standards issues.
    2) I don't see hook_help for the paragraphs_gridstack_demo module (submodule of the main module).
    3) Your commit message didn't follow the standards. Please, do commit amend and change it to "Issue: #3366381 Implemented hook_help()."

    Thanks

  • Assigned to sourabhjain
  • 🇮🇳India sourabhjain

    Let me work on #6

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India sourabhjain

    @panchuk Below are the comments:
    1) Please, take a look at coding standards issues.
    => Done

    2) I don't see hook_help for the paragraphs_gridstack_demo module (submodule of the main module).
    => I can see that its already there. Please let me know if you are expecting somewhere else too. Attaching code for reference in paragraphs_gridstack_demo.module file

    if ($route_name == 'help.page.paragraphs_gridstack_demo') {
        $output = '<h3>' . t('About') . '</h3>';
        $output .= '<p>' . t('The Paragraphs Gridstack Demo module provides several <em>Paragraphs types</em> for the <a href=":paragraphs">Paragraphs module</a>, but no separate user interface. For more information, see the <a href=":online">online documentation for the Paragraphs module</a>.', [
          ':online' => 'https://www.drupal.org/node/2444881',
          ':paragraphs' => Url::fromRoute('help.page', ['name' => 'paragraphs'])->toString(),
        ]) . '</p>';
    }
  • Status changed to Fixed over 1 year ago
  • 🇺🇦Ukraine Panchuk Volyn, Lutsk
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024