Skip to content
Snippets Groups Projects

Added the correct route name for the hook_help.

Merged Abhishek Lal requested to merge issue/announce-3245800:3245800-incorrect-route-name into 1.x
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -14,10 +14,10 @@ use Drupal\Core\Routing\RouteMatchInterface;
*/
function announcements_feed_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.announce':
case 'help.page.announcements_feed':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Announcements Feed module allows to access announcements from the Drupal.org feed. For more information, see the <a href=":documentation">online documentation for the Announcements Feed module module</a>.', [':documentation' => 'https://www.drupal.org/docs/contributed-modules/announcements-feed']) . '</p>';
$output .= '<p>' . t('Announcements Feed module allows to access announcements from the Drupal.org feed. For more information, see the <a href=":documentation">online documentation for the Announcements Feed module</a>.', [':documentation' => 'https://www.drupal.org/docs/contributed-modules/announcements-feed']) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl><dt>' . t('Accessing announcements') . '</dt>';
$output .= '<dd>' . t('Click on "Announce" link in Admin menu toolbar to see all the announcements.') . '</dd>';
Loading