{# /** * @file * Default theme implementation for an individual form element. * * Available variables for all fields: * - multiple: Whether there are multiple instances of the field. * * Available variables for single cardinality fields: * - elements: Form elements to be rendered. * * Available variables when there are multiple fields. * - table: Table of field items. * - description: Description text for the form element. * - button: "Add another item" button. * * @ingroup templates * * @see template_preprocess_field_multiple_value_form() */ #} {% if multiple %}
{{ table }} {% if description.content %}
{{ description.content }}
{% endif %} {% if button %}
{{ button }}
{% endif %}
{% else %} {% for element in elements %} {{ element }} {% endfor %} {% endif %}