form-messages.json.twig 279 B

123
  1. {% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}
  2. {% set message = inline_errors and form.messages ? "FORM.VALIDATION_FAIL"|t : form.message %}
  3. {{ {'status':form.status, 'message':message}|json_encode|raw }}