You are here

function ckeditor_abbreviation_help in CKEditor Abbreviation 8

Same name and namespace in other branches
  1. 7 ckeditor_abbreviation.module \ckeditor_abbreviation_help()
  2. 2.0.x ckeditor_abbreviation.module \ckeditor_abbreviation_help()

Implements hook_help().

File

./ckeditor_abbreviation.module, line 14
Contains ckeditor_abbreviation.module.

Code

function ckeditor_abbreviation_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.ckeditor_abbreviation':
      $output = '';
      $output .= '<h3>' . t('CKEditor Abbreviation') . '</h3>';
      $output .= '<p>' . t('The module adds a CKEditor abbreviation button to the editor toolbar and a link to its context menu (only available if you select an existing abbr tag in the editor content).') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Settings') . '</dt>';
      $output .= '<dd>' . t('In the <a href=":text-formats">text formats</a> that use ckeditor, move the icon into the active toolbar.', [
        ':text-formats' => Url::fromRoute('filter.admin_overview')
          ->toString(),
      ]) . '</dd>';
      $output .= '</dl>';
      return $output;
    default:
  }
}