Get an image from an article/entity How do I easiest get an image (its path) from the article content type included in Drupal 8?

What I have is an entity. Using $image = $node-&gt;fields['field_image'] gives me a hell of a structure, though.

Is there no easier way to get the image path? Also I cannot find the URL in this, what I get is some sort of target_id (the file ID?).
Didn't see this before.

The shortest way to get the referenced entity for a single-value field is this:

$node-&gt;field_image-&gt;entity-&gt;url()


You can also specify the delta explicitly:

$node-&gt;field_image[0]-&gt;entity-&gt;url()


This works with a lot of ArrayAccess and __get() magic.

See also the great cheat sheet at http://wizzlern.nl/drupal/drupal-8-entity-cheat-sheet. and https://www.drupal.org/node/1795854 and the other documentation pages there for more information (still very much work in progress).