Skip to content
Snippets Groups Projects

Issue #3330255: Add hook help

1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
+ 18
0
<?php
<?php
 
use Drupal\Core\Routing\RouteMatchInterface;
 
 
/**
 
* Implements hook_help().
 
*/
 
function themed_fast_404_help($route_name, RouteMatchInterface $route_match) {
 
switch ($route_name) {
 
// Main module help for the themed_fast_404 module.
 
case 'help.page.themed_fast_404':
 
$output = '';
 
$output .= '<h3>' . t('About') . '</h3>';
 
$output .= '<p>' . t('This module provides dynamic 404 /page-not-found page. Cron job will access that page, grab the content from it and put it into a static html file.') . '</p>';
 
$output .= '<p>' . t('After setting proper configuration for drupal core fast_404 it will serve static html file instead of bootstaping drupal.
 
For more information, see the <a href=":url">online documentation for the Themed fast 404 module</a>.', [
 
':url' => 'https://www.drupal.org/docs/contributed-modules/themed_fast_404']) . '</p>';
 
return $output;
 
}
 
}
/**
/**
* @file
* @file
Loading