{% set optionList = [] %} {% set i = 0 %} {% set maxElt = maxElt is defined ? maxElt : 10000 %} {% set maxCharacter = maxCharacter is defined ? maxCharacter : 1000000 %}
{% if vehicle.equipmentStandard is not empty %}
{% for standardEquipment in vehicle.equipmentStandard if i < maxElt %}
{% set optionList = optionList|merge([standardEquipment]) %}
{% set i = i + 1 %}
{% endfor %}
- {{ optionList|join(' - ')|slice(0,maxCharacter) }} {% if optionList|join(' - ')|length > maxCharacter %} ... {% endif %} {% endif %} |