You are here

crop-crop-summary.html.twig in Crop API 8

Same filename and directory in other branches
  1. 8.2 templates/crop-crop-summary.html.twig

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.

File

templates/crop-crop-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an user crop effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this manual crop effect, including:
  8. * - crop_type: Crop type label that is used with the effect.
  9. * - effect: The effect information, including:
  10. * - id: The effect identifier.
  11. * - label: The effect name.
  12. * - description: The effect description.
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% if data.crop_type -%}
  18. {% trans %}
  19. uses <em>{{ data.crop_type|e }}</em> crop type
  20. {% endtrans %}
  21. {%- endif %}