You are here

ckeditor_bgimage.module in CkEditor Background Image 2.0.x

Same filename and directory in other branches
  1. 8 ckeditor_bgimage.module

Contains ckeditor_googlesearch.module.

File

ckeditor_bgimage.module
View source
<?php

/**
 * @file
 * Contains ckeditor_googlesearch.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function ckeditor_bgimage_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.ckeditor_bgimage':
      $output = '';
      $output .= '<h3>' . t('Ckeditor Backgroun Image') . '</h3>';
      $output .= '<p>' . t('The module adds a Background buttqon to the editor toolbar.') . '</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 background icon into the active toolbar.', [
        ':text-formats' => \Drupal::urlGenerator()
          ->generateFromRoute('filter.admin_overview'),
      ]) . '</dd>';
      $output .= '<dd>' . t('Set Text Format to "Full HTML".') . '</dd>';
      $output .= '</dl>';
      return $output;
    default:
  }
}

Functions

Namesort descending Description
ckeditor_bgimage_help Implements hook_help().