Same filename in other branches
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
- {#
- /**
- * @file
- * 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.
- *
- * @ingroup themeable
- */
- #}
- {% trans %}
- Target: {{ data.target }} <br />
- Comparison type: {{ data.comparison }}
- {% endtrans %}
- {% if data.comparison == 'value' %}
- <br />
- {% trans %}
- Value: {{ data.value }}.
- {% endtrans %}
- {% endif %}