You are here

function toc_api_help in TOC API 8

Implements hook_help().

File

./toc_api.module, line 13
Converts header tags into a hierarchical table of contents.

Code

function toc_api_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.toc_api':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The TOC API converts header tags into a hierarchical table of contents.') . '</p>';
      return $output;
    case 'entity.toc_type.collection':
      $output = '<p>' . t('This page provides a list of all table of contents types on the site and allows you to manage the display settings for each.') . '</p>';
      return $output;
  }
  return NULL;
}