Implement hook_help()

Created on 28 February 2020, over 4 years ago
Updated 13 June 2023, over 1 year ago

Hi Please Implement hook_help.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India pavnish

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India Nupur Badola

    Getting website encountered error. Please fix this.

  • Status changed to Needs work over 1 year ago
  • 🇵🇭Philippines clarkssquared

    Hi Sahana _N

    I applied your patch #2 and confirmed that the patch implemented hook help, however when I visit the help page a TypeError warning shows.

    The website encountered an unexpected error. Please try again later.
    TypeError: remote_stream_wrapper_help(): Argument #2 ($route_match) must be of type RouteMatchInterface, Drupal\Core\Routing\CurrentRouteMatch given in remote_stream_wrapper_help() (line 7 of modules/contrib/remote_stream_wrapper/remote_stream_wrapper.module).
    remote_stream_wrapper_help('help.page.remote_stream_wrapper', Object)
    call_user_func_array(Object, Array) (Line: 417)
    Drupal\Core\Extension\ModuleHandler->invoke('remote_stream_wrapper', 'help', Array) (Line: 140)
    Drupal\help\Controller\HelpController->helpPage('remote_stream_wrapper')
    call_user_func_array(Array, Array) (Line: 123)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
    Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
    Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

    Please look at the screenshot attached for your reference

    Thank you.

  • First commit to issue fork.
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MariaDB 10.3.22
    last update over 1 year ago
    30 pass
  • @elber opened merge request.
  • Status changed to Needs review over 1 year ago
  • 🇧🇷Brazil elber Brazil

    Hi I created a MR and fixed the previously error please revise.

  • Status changed to RTBC over 1 year ago
  • 🇵🇭Philippines clarkssquared

    Hi elber

    I applied your MR !9 to my local and confirmed that it fixed the error and implemented hook help successfully.

    Please look at the screenshot attached for your reference

    Thank you

Production build 0.71.5 2024