Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 328 Bytes

twig-helper.md

File metadata and controls

14 lines (11 loc) · 328 Bytes

InfiniteFormBundle's Twig Helper

isValid test

The helper provides a validity test that can be used in templates. It can be used for something like the following:

<div class="{% if form.field is invalid %}error{% endif %}">
    {{ form_row(form.field) }}
</div>