You are here

function page_specific_class_help in Page Specific Class 2.0.x

Same name and namespace in other branches
  1. 8 page_specific_class.module \page_specific_class_help()

Implements hook_help().

File

./page_specific_class.module, line 59
This file adds a class to the body tag page-wise.

Code

function page_specific_class_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.page_specific_class':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t("Page Specific Class allows users to add classes to body of any page through the configuration interface. Hooray for more powerful page theming!") . '</p>';
      $output .= '<h3>' . t('Usage') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('To add a class to a body tag of page, simply visit that  configuration page at <a href=":configure_link">Configure</a>.', [
        ':configure_link' => Url::fromRoute('page_specific_class.settings')
          ->toString(),
      ]) . '</dt>';
      $output .= '</dl>';
      return $output;
  }
}