You are here

slick-image.html.twig in Slick Carousel 8

Default theme implementation to display a lazyloaded, or responsive image.

The core Slick image supports core image, and responsive image.

Available variables:

  • image: A collection of image data.
  • attributes: An array of attributes.
  • url: An optional URL the image can be linked to, can be any of entity URLs, when using Colorbox/Photobox, or Link to content.
  • settings: An array containing the given settings.

@deprecated: Just use blazy.html.twig to reduce function calls. This is never used, and will be removed post 8.x-1.1.

File

templates/slick-image.html.twig
View source
  1. {% extends "@blazy/blazy.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Default theme implementation to display a lazyloaded, or responsive image.
  6. *
  7. * The core Slick image supports core image, and responsive image.
  8. *
  9. * Available variables:
  10. * - image: A collection of image data.
  11. * - attributes: An array of attributes.
  12. * - url: An optional URL the image can be linked to, can be any of
  13. * entity URLs, when using Colorbox/Photobox, or Link to content.
  14. * - settings: An array containing the given settings.
  15. *
  16. * @see template_preprocess_blazy().
  17. * @see template_preprocess_slick_image().
  18. *
  19. * @ingroup themeable
  20. *
  21. * @deprecated: Just use blazy.html.twig to reduce function calls.
  22. * This is never used, and will be removed post 8.x-1.1.
  23. */
  24. #}
  25. {% set attributes = attributes.addClass('media--slick') %}