function template_preprocess_shrinktheweb_image_link in ShrinkTheWeb 8
Displays the thumbnail as a link.
Parameters
array $variables:
File
- ./
shrinktheweb.module, line 157
Code
function template_preprocess_shrinktheweb_image_link(&$variables) {
$options = _shrinktheweb_custom_settings($variables);
if ($src = shrinktheweb_get_thumbnail($variables['url'], $options)) {
$variables['image_path'] = $src;
}
$variables['url'] = Url::fromUri($variables['url']);
}