image-effects-set-transparent-color-summary.html.twig in Image Effects 8.2
Same filename and directory in other branches
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.
1 theme call to image-effects-set-transparent-color-summary.html.twig
- SetTransparentColorImageEffect::getSummary in src/
Plugin/ ImageEffect/ SetTransparentColorImageEffect.php - Returns a render array summarizing the configuration of the image effect.
File
templates/image-effects-set-transparent-color-summary.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @ingroup themeable
- */
- #}
- {% spaceless %}
- {% if data.transparent_color %}
- {{ data.color_info }}
- {% else %}
- - <em>{{ 'Source image'|t }}</em>
- {% endif %}
- {% endspaceless %}