You are here

function template_preprocess_shrinktheweb_formatter_shrinktheweb_link_plain in ShrinkTheWeb 8

Displays the thumbnail as '[ShrinkTheWeb] URL as plain text'.

Parameters

array $variables:

File

./shrinktheweb.module, line 191

Code

function template_preprocess_shrinktheweb_formatter_shrinktheweb_link_plain(&$variables) {
  $options = _shrinktheweb_custom_settings($variables);
  if ($src = shrinktheweb_get_thumbnail($variables['url'], $options)) {
    $variables['image_path'] = $src;
  }
  $variables['url'] = Url::fromUri($variables['url']);
}