You are here

imagelightbox-formatter.html.twig in ImageLightbox 8

Default theme implementation to display a formatted ImageLightBox field.

Available variables:

  • link_attibutes: Link attributes.
  • image: A collection of image data.
  • image_style: An optional image style.
  • url: An optional URL the image can be linked to.

See also

template_preprocess_ImageLightBox_formatter()

File

templates/imagelightbox-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a formatted ImageLightBox field.
  5. *
  6. * Available variables:
  7. * - link_attibutes: Link attributes.
  8. * - image: A collection of image data.
  9. * - image_style: An optional image style.
  10. * - url: An optional URL the image can be linked to.
  11. *
  12. * @see template_preprocess_ImageLightBox_formatter()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <a {{ link_attributes }} href="{{ url }}">{{ image }} </a>