diff --git a/clean_node_api/clean_node_api.module b/clean_node_api/clean_node_api.module index fca6766c5e8ed71d5e0859849ae0e975f2e96274..84a35a21b7a4d28d53872957ef1d599a51402446 100644 --- a/clean_node_api/clean_node_api.module +++ b/clean_node_api/clean_node_api.module @@ -2,4 +2,27 @@ /** * @file ++ * Clean restful api. */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + * + * @param $route_name + * @param \Drupal\Core\Routing\RouteMatchInterface $route_match + * + * @return string + * Return in string + */ +function clean_node_api_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the ctc module. + case 'help.page.clean_node_api': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('Clean RESTful Web Services API is just alternative for default drupal APIs that is not clean.') . '</p>'; + return $output; + } +}