imagelightbox-formatter.html.twig in ImageLightbox 8
Same filename and directory in other branches
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()
1 theme call to imagelightbox-formatter.html.twig
- ImageLightBoxFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ ImagelightboxFormatter.php - Builds a renderable array for a field value.
File
templates/imagelightbox-formatter.html.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_ImageLightBox_formatter()
- *
- * @ingroup themeable
- */
- #}
-
- <a {{ link_attributes }} href="{{ url }}">{{ image }} </a>