image-effects-contrast-summary.html.twig in Image Effects 8.3
Same filename and directory in other branches
Default theme implementation for a summary of an image contrast effect.
Available variables:
- data: The current configuration for this contrast effect, including:
- level: The contrast adjustment level in percent.
 
 - effect: The effect information, including:
- id: The effect identifier.
 - label: The effect name.
 - description: The effect description.
 
 
1 theme call to image-effects-contrast-summary.html.twig
- ContrastImageEffect::getSummary in src/
Plugin/ ImageEffect/ ContrastImageEffect.php  - Returns a render array summarizing the configuration of the image effect.
 
File
templates/image-effects-contrast-summary.html.twigView source
- {#
 - /**
 -  * @file
 -  * Default theme implementation for a summary of an image contrast effect.
 -  *
 -  * Available variables:
 -  * - data: The current configuration for this contrast effect, including:
 -  *   - level: The contrast adjustment level in percent.
 -  * - effect: The effect information, including:
 -  *   - id: The effect identifier.
 -  *   - label: The effect name.
 -  *   - description: The effect description.
 -  *
 -  * @ingroup themeable
 -  */
 - #}
 - {% apply spaceless %}
 -   {% if data.level > 0 %}
 -     {% trans %}
 -       +{{ data.level }}%
 -     {% endtrans %}
 -   {% elseif data.level < 0 %}
 -     {% trans %}
 -       {{ data.level }}%
 -     {% endtrans %}
 -   {% else %}
 -     <em>{{ 'Unchanged'|t }}</em>
 -   {% endif %}
 - {% endapply %}