You are here

image-effects-relative-crop-summary.html.twig in Image Effects 8.3

Default theme implementation for a summary of a relative crop image effect.

Available variables:

  • data: The current configuration for this relative crop effect, including:

    • width: The relative width of the resized image.
    • height: The relative height of the resized image.
    • anchor: The part of the image that will be retained after cropping. Has the following keys:

      • width: The anchor to use when cropping images in width. Either 'left', 'center', or 'right'.
      • height: The anchor to use when cropping images in height. Either 'top' 'center' or 'bottom'.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/image-effects-relative-crop-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of a relative crop image effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this relative crop effect, including:
  8. * - width: The relative width of the resized image.
  9. * - height: The relative height of the resized image.
  10. * - anchor: The part of the image that will be retained after cropping. Has
  11. * the following keys:
  12. * - width: The anchor to use when cropping images in width. Either 'left',
  13. * 'center', or 'right'.
  14. * - height: The anchor to use when cropping images in height. Either 'top'
  15. * 'center' or 'bottom'.
  16. * - effect: The effect information, including:
  17. * - id: The effect identifier.
  18. * - label: The effect name.
  19. * - description: The effect description.
  20. *
  21. * @ingroup themeable
  22. */
  23. #}
  24. {% if data.width and data.height %}
  25. {{ data.width }}:{{ data.height }}
  26. {% endif %}