I have a render array for a form in my D7 module that looks like this:
'form' =>
array
'#id' => string 'demo-form' (length=9)
'#action' => string '/sprint07/' (length=10)
'name' =>
array
'#title' => string 'Username' (length=8)
'#maxlength' => int 13
'#size' => int 15
'#type' => string 'textfield' (length=9)
'#required' => boolean true
'#input' => boolean true
'#autocomplete_path' => boolean false
... snip ...
I'm using twig-for-drupal to create a theme, but I can't seem to get the values back, I've tried {{ form['name']['#type'] }}, {{ form.name.#type }}, {{ form.name['#type'] }} and so on, but they all come back blank.
Other fields such as form['#action'] works fine, so how should I access the information more than one array in? I can't change the module too much as the php template in its native state uses render(form);
-- Update --
Added some more debugging to this, and seems that I can use {{ form|dump('v') }} to show me the whole array as above, but when I do {{ form.name|dump('v') }} I just get a string, which I assume means that twig is automatically detecting its a render array, and "helpfully" converting it for me.. So I guess that makes my question: how do I turn off the auto-rendering?