image-effects-mask-summary.html.twig in Image Effects 8
Same filename and directory in other branches
Default theme implementation for a summary of an image mask effect.
Available variables:
- data: The current configuration for this mask effect, including:
- mask_image: The mask image.
- mask_width: The mask resize width.
- mask_height: The mask resize height.
- placement: The position of the mask on the underlying image.
- x_offset: The x_offset of the mask image.
- y_offset: The y_offset of the mask image.
 
- effect: The effect information, including:
- id: The effect identifier.
- label: The effect name.
- description: The effect description.
 
1 theme call to image-effects-mask-summary.html.twig
- MaskImageEffect::getSummary in src/Plugin/ ImageEffect/ MaskImageEffect.php 
- Returns a render array summarizing the configuration of the image effect.
File
templates/image-effects-mask-summary.html.twigView source
- {#
- /**
-  * @file
-  * Default theme implementation for a summary of an image mask effect.
-  *
-  * Available variables:
-  * - data: The current configuration for this mask effect, including:
-  *   - mask_image: The mask image.
-  *   - mask_width: The mask resize width.
-  *   - mask_height: The mask resize height.
-  *   - placement: The position of the mask on the underlying image.
-  *   - x_offset: The x_offset of the mask image.
-  *   - y_offset: The y_offset of the mask 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.mask_image|e }}</strong>
-   {% if data.mask_width or data.mask_height %}
-     - {{ 'Mask width'|t }}:
-     {% if data.mask_width %}{{ data.mask_width|e }}{% else %}{{ '(scaled)'|t }}{% endif %},
-     {{ 'height'|t }}:
-     {% if data.mask_height %}{{ data.mask_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 %}
- {% endspaceless %}
