You are here

function chosen_help in Chosen 8.2

Same name and namespace in other branches
  1. 7.2 chosen.module \chosen_help()
  2. 3.0.x chosen.module \chosen_help()

Implements hook_help().

File

./chosen.module, line 135
General functions and hook implementations.

Code

function chosen_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.chosen':
      $output = '';
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Chosen uses the Chosen jQuery plugin to make your < select > elements more user-friendly.') . '</p>';
      $output .= '<h3>' . t('Usage') . '</h3>';
      $output .= '<p>' . t('Configure at: <a href=":structure_types">admin/config/user-interface/chosen</a>', [
        ':structure_types' => Url::fromRoute('chosen.admin')
          ->toString(),
      ]) . '</p>';
      return $output;
  }
}