I have created a paragraph type which has field of type entity reference, link, plain text.
Now I want to fetch the values present in these through the preprocessor.paragraph.inc and display it in the custom template(twig).
Can anyone please let me know how do i do this?
I have written a hook function in the preprocessor, but unable to fetch values of paragraph types.
Eg of my paragraphs type:
In the section contains 2 fields, first is the title which is a plain text and second is the box, which is an entity reference revision
The box, is a paragraph type which has many fields like
Now how do i access values present in these through the hook function and display the same in twig template.