You are here

image-hover-effects-image-formatter.html.twig in Image Hover Effects 8

Default theme implementation to display an image field with hover effects.

File

templates/image-hover-effects-image-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display an image field with hover effects.
  5. * @see template_preprocess_image_hover_effects_image_formatter()
  6. */
  7. #}
  8. {% if url %}
  9. <a{{link_attributes}} href="{{ url }}">{{ image }}</a>
  10. {% else %}
  11. {{ image }}
  12. {% endif %}