image-effects-watermark-summary.html.twig in Image Effects 8
Same filename and directory in other branches
Default theme implementation for a summary of an image watermark effect.
Available variables:
- data: The current configuration for this watermark effect, including:
- watermark_image: The watermark image.
- watermark_width: The watermark image width.
- watermark_height: The watermark image height.
- placement: The position of the watermark on the underlying image.
- x_offset: The x_offset of the watermark image.
- y_offset: The y_offset of the watermark image.
- opacity: The opacity of the watermark image.
- effect: The effect information, including:
- id: The effect identifier.
- label: The effect name.
- description: The effect description.
1 theme call to image-effects-watermark-summary.html.twig
- WatermarkImageEffect::getSummary in src/
Plugin/ ImageEffect/ WatermarkImageEffect.php - Returns a render array summarizing the configuration of the image effect.
File
templates/image-effects-watermark-summary.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a summary of an image watermark effect.
- *
- * Available variables:
- * - data: The current configuration for this watermark effect, including:
- * - watermark_image: The watermark image.
- * - watermark_width: The watermark image width.
- * - watermark_height: The watermark image height.
- * - placement: The position of the watermark on the underlying image.
- * - x_offset: The x_offset of the watermark image.
- * - y_offset: The y_offset of the watermark image.
- * - opacity: The opacity of the watermark image.
- * - effect: The effect information, including:
- * - id: The effect identifier.
- * - label: The effect name.
- * - description: The effect description.
- *
- * @ingroup themeable
- */
- #}
- {% spaceless %}
- - {{ 'Image'|t }}: <strong>{{ data.watermark_image|e }}</strong>
- {% if data.watermark_width or data.watermark_height %}
- - {{ 'Watermark width'|t }}:
- {% if data.watermark_width %}{{ data.watermark_width|e }}{% else %}{{ '(scaled)'|t }}{% endif %},
- {{ 'height'|t }}:
- {% if data.watermark_height %}{{ data.watermark_height|e }}{% else %}{{ '(scaled)'|t }}{% endif %}
- {% endif %}
- - {{ 'Placement'|t }}: {{ data.placement|e }}
- {% if data.x_offset %}- {{ 'X offset'|t }}: {{ data.x_offset|e }}{% endif %}
- {% if data.y_offset %}- {{ 'Y offset'|t }}: {{ data.y_offset|e }}{% endif %}
- - {{ 'Opacity'|t }}: {{ data.opacity|e }}%
- {% endspaceless %}