You are here

image-effects-set-transparent-color-summary.html.twig in Image Effects 8

Default theme implementation for a summary of a Set transparent color effect.

Available variables:

  • data: The current configuration for this set tranparent color effect, including:

    • transparent_color: The configured hexadecimal color value.
    • color_info: A render element for color information including a color preview.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/image-effects-set-transparent-color-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of a Set transparent color effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this set tranparent color effect,
  8. * including:
  9. * - transparent_color: The configured hexadecimal color value.
  10. * - color_info: A render element for color information including a color
  11. * preview.
  12. * - effect: The effect information, including:
  13. * - id: The effect identifier.
  14. * - label: The effect name.
  15. * - description: The effect description.
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {% spaceless %}
  21. {% if data.transparent_color %}
  22. {{ data.color_info }}
  23. {% else %}
  24. - <em>{{ 'Source image'|t }}</em>
  25. {% endif %}
  26. {% endspaceless %}