How to get rendered content properties from an entity reference in Twig
In PHP you could force to build the render array of the field of a referenced entity early:

$build = $node-&gt;reference-&gt;entity-&gt;field_stock_photo-&gt;view();


And then look for '#uri' in the build array.