You are here

function ckeditor_find_help in CKEditor Find/Replace 8

Implements hook_help().

File

./ckeditor_find.module, line 13
Contains ckeditor_find.module.

Code

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

    // Main module help for the ckeditor_find module.
    case 'help.page.ckeditor_find':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('This plugin module adds the find and replace dialog to CKEditor in Drupal 8') . '</p>';
      $output .= '<p><ul>';
      $output .= '  <li>Quickly search the text as well as replace words inside it.</li>';
      $output .= '  <li>Common options available for matching: ';
      $output .= '    <ul>';
      $output .= '      <li>case</li>';
      $output .= '      <li>whole word</li>';
      $output .= '      <li>cyclic</li>';
      $output .= '    </ul>';
      $output .= '  </li>';
      $output .= '</ul></p>';
      $output .= '<p><a href="http://ckeditor.com/addon/find">http://ckeditor.com/addon/find</a></p>';
      return $output;
    default:
  }
}