Commit 5d81b9f9 authored by Oleksandr Bazyliuk's avatar Oleksandr Bazyliuk
Browse files

Issue #3012055 by alex_optim, Eric_A: Broken hook_help() implementation.

parent bc343eaa
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
<?php

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function riddler_help($path, $arg) {
  switch ($path) {
    case 'admin/config/people/riddler':
function riddler_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.riddler':
      $output = '<p>' . t('Requires anonymous users completing forms to answer a simple question to counter spam.') . '</p>';
      return $output;
  }