I have a paragraph that has a field of type paragraph reference to sub-paragraphs.
Within my template, I need to access these sub-paragraphs and render the entity element. I have a loop that loops through a list of Drupal\paragraphs\Entity\Paragraph
elements.
I need to render the paragraph markup. Is there a function?
I tried item|render
and item.view()
, but neither of them worked.