- 🇧🇪Belgium dieterholvoet Brussels
This issue is fixed by the patch in 🐛 referencedEntities() causes data loss Needs review .
I am using paragraph module and using that creating paragraph as well as nested paragraph.
So for fetching nested paragraph field data from $paragraph object in Hook_preprocess_paragraph() function I have used referencedEntities().
Below are the code written for paragraph preprocess hook.
$paragraph = $variables['elements']['#paragraph'];
$variables['download_file_list'] = $paragraph->get('field_files')->referencedEntities();
If I access page using node/ [nid] this code is return reference entity values, but if I edit same page and click "Preview" button to preview node referencedEntities() return blank.
So please let me know how we get reference entities in node preview page.
Closed: duplicate
1.2
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This issue is fixed by the patch in 🐛 referencedEntities() causes data loss Needs review .