Same filename and directory in other branches
  1. 8.x-2.x templates/field-states-ui-summary.html.twig 1 comment

Default theme implementation for a summary of a field state.

Available variables:

  • data: The current configuration for this field state, including:

    • target: The field being monitored to apply states on the current field.
    • comparison: What type of comparison to run on the target.
    • value: If the comparison is by value, the value to compare with.
1 theme call to field-states-ui-summary.html.twig
FieldStateBase::getSummary in src/FieldStateBase.php
Returns a render array summarizing the configuration of the image effect.

File

templates/field-states-ui-summary.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of a field state.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this field state, including:
  8. * - target: The field being monitored to apply states on the current field.
  9. * - comparison: What type of comparison to run on the target.
  10. * - value: If the comparison is by value, the value to compare with.
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. {% trans %}
  16. Target: {{ data.target }} <br />
  17. Comparison type: {{ data.comparison }}
  18. {% endtrans %}
  19. {% if data.comparison == 'value' %}
  20. <br />
  21. {% trans %}
  22. Value: {{ data.value }}.
  23. {% endtrans %}
  24. {% endif %}