You are here

function current_page_entity_tokens_help in Current Page Entity Tokens 2.0.x

Same name and namespace in other branches
  1. 8 current_page_entity_tokens.module \current_page_entity_tokens_help()
  2. 1.0.x current_page_entity_tokens.module \current_page_entity_tokens_help()

Implements hook_help().

File

./current_page_entity_tokens.module, line 15
Contains current_page_entity_tokens.module.

Code

function current_page_entity_tokens_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the current_page_entity_tokens module.
    case 'help.page.current_page_entity_tokens':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Make tokens from the current request&#039;s entity available') . '</p>';
      return $output;
    default:
  }
}