Im new to twig and having a hard time getting what I need out of an array.
Here is my output from
{{ dump(items) }}
array (size=1)
0 =>
array (size=2)
'content' =>
array (size=4)
'#type' => string 'processed_text' (length=14)
'#text' => string '8AS09DF8a90sd80' (length=15)
'#format' => string 'basic_html' (length=10)
'#langcode' => string 'en' (length=2)
'attributes' =>
object(Drupal\Core\Template\Attribute)[2249]
protected 'storage' =>
array (size=0)
...
So I have an object(i think) with nested info inside of it
- I am trying to pull out the '#text' of 8AS09DF8a90sd80 but cant get anything but the dump to work.
Ive tried:
{{ dump(items[0]) }}
{{ dump(items['content']) }}
{{ items.content }}
{{ items.['content']['text'] }}
and a bunch of other formats, nothing works!!
How do I structure this in twig?