You are here

function tokenuuid_help in Token UUID 8

Implements hook_help().

File

./tokenuuid.module, line 15
Contains tokenuuid.module.

Code

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

    // Main module help for the tokenuuid module.
    case 'help.page.tokenuuid':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Create an Universally unique identifier token for node, term, user, current-user and all others content entities.') . '</p>';
      $output .= '<ul>';
      $output .= '<li>[current-user:uuid]</li>';
      foreach (tokenuuid_get_contententitytype_id() as $entity_id) {
        $output .= '<li>[' . $entity_id . ':uuid]</li>';
      }
      $output .= '</ul>';
      return $output;
    default:
  }
}