You are here

function block_class_help in Block Class 8

Same name and namespace in other branches
  1. 7.2 block_class.module \block_class_help()

Implements hook_help().

File

./block_class.module, line 19
Adding classes to blocks.

Code

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

    // Main module help for the forms_to_email module.
    case 'help.page.block_class':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t("Block Class allows users to add classes to any block through the block's configuration interface. Hooray for more powerful block theming!") . '</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;
  }
}