image-effects-brightness-summary.html.twig in Image Effects 8.3
Same filename and directory in other branches
Default theme implementation for a summary of an image brightness effect.
Available variables:
- data: The current configuration for this brightness effect, including:
- level: The brightness 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-brightness-summary.html.twig
- BrightnessImageEffect::getSummary in src/
Plugin/ ImageEffect/ BrightnessImageEffect.php - Returns a render array summarizing the configuration of the image effect.
File
templates/image-effects-brightness-summary.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a summary of an image brightness effect.
- *
- * Available variables:
- * - data: The current configuration for this brightness effect, including:
- * - level: The brightness 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 %}