You are here

function youtubechannel_help in YoutubeChannel 8.3

Same name and namespace in other branches
  1. 6 youtubechannel.module \youtubechannel_help()
  2. 7.2 youtubechannel.module \youtubechannel_help()
  3. 7 youtubechannel.module \youtubechannel_help()

Implements hook_help().

File

./youtubechannel.module, line 16
Contains hooks for youtubechannel module.

Code

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

    // Main module help for the better_exposed_filters module.
    case 'help.page.youtubechannel':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('YoutubeChannel is a module with a purpose to give you list of videos from a given youtube channel in your site.</p>');
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dt>' . t('Youtube channel settings') . '</dt>';
      $output .= '<dd>' . t('This module has a configuration page <a href=":YoutubeChannel">Youtube channel settings</a> where you can add api key and channel.This module creates a block to enable in the region.', [
        ':YoutubeChannel' => Url::fromRoute('youtubechannel.settings')
          ->toString(),
      ]) . '</dd>';
      return $output;
      break;
  }
}