- 🇫🇷France pdureau Paris
your example is an incorrect YAML snippet:
name: Preview slots: content: - theme: item_list list_type: ul items: - type: html_tag tag: p value: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ...'
I guess you meant this:
name: Preview slots: content: theme: item_list list_type: ul items: - type: html_tag tag: p value: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ...'
item_list
is not a render child but a render property. Each item expects:- attributes: HTML attributes to be applied to each list item.
- value: The content of the list element.
Source: https://api.drupal.org/api/drupal/core%21modules%21system%21templates%21...
So, i guess you need to do this:
name: Preview slots: content: theme: item_list list_type: ul items: - value: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ...'
Is it OK like that?