Skip to content
Snippets Groups Projects
Commit 04acfcbc authored by Meysam Zandy's avatar Meysam Zandy
Browse files

add Implements hook_help() in clean_node_api.module

parent 25608c6d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment