I use EasyAdmin in Symfony 4 and I want to set some fields in twig template to disabled true or false depends on user role.
For example
{{ dump(form.role.vars.disabled) }}
shows true
I want to set it to false
{% block entity_form %}
{% set form.role.vars.disabled = false %}
{{ form(form) }}
{% endblock entity_form %}
But I got the error
Unexpected token "punctuation" of value "." ("end of statement block" expected).
Also I tried to merge it as array but got error.
How to do it correctly?