1

I have an object called 'attributes' available to me in a twig template. Given that the following:

{{ dump(attributes) }}
{{ dump(attributes.storage) }}
{{ dump(attributes.storage['data-quickedit-field-id']) }}

dumps this:

enter image description here

how do I access the value property:?

'paragraph/3/field_section_title/en/default'

I've tried the obvious:

{{ dump(attributes.storage['data-quickedit-field-id'].value) }}

The following methods are available to me:

enter image description here

2

You can pipe it to render:

{{ attributes.storage['data-quickedit-field-id']|render }}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.