image-effects-resize-percentage-summary.html.twig in Image Effects 8.3
Same filename and directory in other branches
Default theme implementation for summary of resize percentage image effect.
Available variables:
- data: The current configuration for this set canvas effect, including:
- width: the width in px or as % of source image.
- height: the height in px or as % of source image.
- effect: The effect information, including:
- id: The effect identifier.
- label: The effect name.
- description: The effect description.
1 theme call to image-effects-resize-percentage-summary.html.twig
- ResizePercentageImageEffect::getSummary in src/
Plugin/ ImageEffect/ ResizePercentageImageEffect.php - Returns a render array summarizing the configuration of the image effect.
File
templates/image-effects-resize-percentage-summary.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for summary of resize percentage image effect.
- *
- * Available variables:
- * - data: The current configuration for this set canvas effect, including:
- * - width: the width in px or as % of source image.
- * - height: the height in px or as % of source image.
- * - effect: The effect information, including:
- * - id: The effect identifier.
- * - label: The effect name.
- * - description: The effect description.
- *
- * @ingroup themeable
- */
- #}
- {% apply spaceless %}
- - {{ 'Width'|t }}:
- {% if data.width %}
- {{ data.width|e }}
- {% else %}
- {{ '(scaled)'|t }}
- {% endif %}
- - {{ 'Height'|t }}:
- {% if data.height %}
- {{ data.height|e }}
- {% else %}
- {{ '(scaled)'|t }}
- {% endif %}
- {% endapply %}