You are here

function theme_switcher_help in Theme Switcher Rules 8

Implements hook_help().

File

./theme_switcher.module, line 15
Contains hook implementations for Theme Switcher module.

Code

function theme_switcher_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'theme_switcher.admin':
      $output = '<p>' . t('The following Theme Switcher Rules have been
        created for your site. The rule with highest weight will be applied
        first.') . '</p>';
      return $output;
    case 'help.page.theme_switcher':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Theme Switcher module allows you to
        create theme-switching rules which allow automatic selection of a
        theme based on Drupal 8 Conditions system. Because of this it can
        also be easily extended to support additional custom conditions
        exposed by other modules. In Drupal 8 conditions are no longer
        defined through a hook and they are plugins now.') . '</p>';
      return $output;
  }
}