You are here

function block_classes_help in Block Classes 1.0.x

Implements hook_help().

File

./block_classes.module, line 18
Adding classes to blocks.

Code

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

    // Main module help for the block_classes module.
    case 'help.page.block_classes':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t("Block Classes allows users to add classes to title, content of the Blocks.") . '</p>';
      $output .= '<h3>' . t('Installation note') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Enable the module on <a href=":extend_link">extend menu</a>.', [
        ':extend_link' => Url::fromRoute('system.modules_list')
          ->toString(),
      ]) . '</dt>';
      $output .= '</dl>';
      $output .= '<h3>' . t('Usage') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t("To add a class to a block, simply visit that block's configuration page at Administration > Structure > Block Layout and click on Configure of the desired block.") . '</dt>';
      $output .= '</dl>';
      return $output;
  }
}