Read-only
Introduction
To render the form as read-only just set the readOnly
flag on the builder.
protected $readOnly = true;
You can also set this flag on the fly.
$builder->setReadOnly(true);
{{ form('test', 'example').readOnly(true).render()|raw }}