Skip to content
Snippets Groups Projects

Issue #3339095: hook_help function missing in .module file

Closed Kamlesh Kishor Jha requested to merge issue/date_filter-3339095:1.0.x into 1.0.x
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
+ 15
0
@@ -8,6 +8,21 @@
declare(strict_types=1);
use Drupal\date_filter\Plugin\views\filter\Date;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function date_filter_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the date_filter module.
case 'help.page.date_filter':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This is a plug-and-play module that replaces core date and datetime filters with a single class that handles both storage types of date and timestamp.') . '</p>';
return $output;
}
}
/**
* Implements hook_views_plugins_filter_alter().
Loading