image-effects-aspect-switcher.html.twig in Image Effects 8.3
Same filename and directory in other branches
Default theme implementation for a summary of an aspect switcher effect.
Available variables:
- data: The current configuration for this aspect switcher effect,
including:
- landscape: Image style for landscape orientation.
- landscape_image_style: Image style (machine name) for landscape orientation.
- portrait: Image style for portrait orientation.
- portrait_image_style: Image style (machine name) for portrait orientation.
- ratio_adjustment: Rules for how different the proportions need to be to trigger the switch.
- effect: The effect information, including:
- id: The effect identifier.
- label: The effect name.
- description: The effect description.
1 theme call to image-effects-aspect-switcher.html.twig
- AspectSwitcherImageEffect::getSummary in src/
Plugin/ ImageEffect/ AspectSwitcherImageEffect.php - Returns a render array summarizing the configuration of the image effect.
File
templates/image-effects-aspect-switcher.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a summary of an aspect switcher effect.
- *
- * Available variables:
- * - data: The current configuration for this aspect switcher effect,
- * including:
- * - landscape: Image style for landscape orientation.
- * - landscape_image_style: Image style (machine name) for landscape
- * orientation.
- * - portrait: Image style for portrait orientation.
- * - portrait_image_style: Image style (machine name) for portrait
- * orientation.
- * - ratio_adjustment: Rules for how different the proportions need to be to
- * trigger the switch.
- * - effect: The effect information, including:
- * - id: The effect identifier.
- * - label: The effect name.
- * - description: The effect description.
- *
- * @ingroup themeable
- */
- #}
- {% apply spaceless %}
- - {{ 'Portrait'|t }}: <b>{{ data.portrait }}</b>, {{ 'Landscape'|t }}: <b>{{ data.landscape }}</b>, {{ 'Ratio'|t }}: {{ data.ratio_adjustment }}
- {% endapply %}