I have a node with a entity reference field where the user can select nodes to be displayed in a view. I want to alter the results to programmatically add a node.
I have tried these 2 hooks to alter the results:
However, the results only give 1 result which is first node in the reference field list. How do i loop through the actual result since the view itself displays fine with the selected nodes.