You are here

image-effects-aspect-switcher.html.twig in Image Effects 8

Default theme implementation for a summary of an aspect switcher effect.

Available variables:

  • data: The current configuration for this aspect switcher effect, including:

    • landscape: Image style for landscape orientation.
    • landscape_image_style: Image style (machine name) for landscape orientation.
    • portrait: Image style for portrait orientation.
    • portrait_image_style: Image style (machine name) for portrait orientation.
    • ratio_adjustment: Rules for how different the proportions need to be to trigger the switch.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/image-effects-aspect-switcher.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an aspect switcher effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this aspect switcher effect,
  8. * including:
  9. * - landscape: Image style for landscape orientation.
  10. * - landscape_image_style: Image style (machine name) for landscape
  11. * orientation.
  12. * - portrait: Image style for portrait orientation.
  13. * - portrait_image_style: Image style (machine name) for portrait
  14. * orientation.
  15. * - ratio_adjustment: Rules for how different the proportions need to be to
  16. * trigger the switch.
  17. * - effect: The effect information, including:
  18. * - id: The effect identifier.
  19. * - label: The effect name.
  20. * - description: The effect description.
  21. *
  22. * @ingroup themeable
  23. */
  24. #}
  25. {% spaceless %}
  26. - {{ 'Portrait'|t }}: <b>{{ data.portrait }}</b>, {{ 'Landscape'|t }}: <b>{{ data.landscape }}</b>, {{ 'Ratio'|t }}: {{ data.ratio_adjustment }}
  27. {% endspaceless %}