You are here

function textimage_help in Textimage 8.4

Same name and namespace in other branches
  1. 8.3 textimage.module \textimage_help()
  2. 5.2 textimage.module \textimage_help()
  3. 5 textimage.module \textimage_help()
  4. 6.2 textimage.module \textimage_help()
  5. 7.3 textimage.module \textimage_help()
  6. 7.2 textimage.module \textimage_help()

Implements hook_help().

File

./textimage.module, line 19
Textimage - Provides text to image manipulations.

Code

function textimage_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'textimage.settings':
      $output = '<p>';
      $output .= t('Textimage provides integration with the <a href="@image_effects_url">Image effects</a> module to generate images with overlaid text.', [
        '@image_effects_url' => 'https://www.drupal.org/project/image_effects',
      ]);
      $output .= ' ' . t('Use <a href="@image">Image styles</a> features to create Image styles. The \'Text overlay\' image effect must be used to specifiy the text appearance on the generated image.', [
        '@image' => Url::fromRoute('entity.image_style.collection')
          ->toString(),
      ]);
      $output .= ' ' . t('On the edit image style form, a "Textimage options" section allows selecting Textimage-specific options for the style.');
      $output .= '</p>';
      return $output;
  }
}