crop-crop-summary.html.twig in Crop API 8
Same filename and directory in other branches
Default theme implementation for a summary of an user crop effect.
Available variables:
- data: The current configuration for this manual crop effect, including:
- crop_type: Crop type label that is used with the effect.
- effect: The effect information, including:
- id: The effect identifier.
- label: The effect name.
- description: The effect description.
1 theme call to crop-crop-summary.html.twig
- CropEffect::getSummary in src/
Plugin/ ImageEffect/ CropEffect.php - Returns a render array summarizing the configuration of the image effect.
File
templates/crop-crop-summary.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a summary of an user crop effect.
- *
- * Available variables:
- * - data: The current configuration for this manual crop effect, including:
- * - crop_type: Crop type label that is used with the effect.
- * - effect: The effect information, including:
- * - id: The effect identifier.
- * - label: The effect name.
- * - description: The effect description.
- *
- * @ingroup themeable
- */
- #}
- {% if data.crop_type -%}
- {% trans %}
- uses <em>{{ data.crop_type|e }}</em> crop type
- {% endtrans %}
- {%- endif %}