Skip to content
Snippets Groups Projects
Commit d4599713 authored by shahin.raza's avatar shahin.raza
Browse files

Added hook help

parent 1892be8f
No related branches found
No related tags found
1 merge request!1Added hook help
......@@ -5,6 +5,25 @@
* Codepen field module adds a field for Codepen embeds.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function codepen_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.codepen':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Codepen module provides a field that allows you to add a Codepen.io embed to a content type, user, or any other Drupal entity.') . '</p>';
$output .= '<p>' . t('Visit the <a href=":project_link">Project page</a> on Drupal.org for more information.', [
':project_link' => 'https://www.drupal.org/project/codepen',
]);
return $output;
}
}
/**
* Implements hook_menu_link_defaults().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment