I’m trying to create a paragraph that will allow me to display several children’s paragraph fields.
I added the children-paragraph to the parent paragraph via Entity reference revisions
.
I created 3 template files in order to render my entities: paragraph--parent-paragraph.html.twig
, paragraph--child-paragraph.html.twig
and field--field-child-paragraph-reference
With the children referenced, I then attempted to use the reference template (field–field-child-paragraph-reference) where I had access to all children. It all works well until I try to get specific fields from the entity.
I looked this up using kint/dsm and they appear protected.
I need to be able to access those fields where I have access to all the children so I can use parts of children for parts of the display.
How to proceed?