How to access all images uri in node's field in custom module? I already know I can get an url for field of node this way:

$src = file_create_url($node-&gt;get('name_of_image_field')-&gt;entity-&gt;uri-&gt;value);


The problem is, my field name_of_image_field has multiple images. How to access them all?
You can try this code: 

$img_urls = array();
foreach ($node-&gt;field_image as $item) {
  if ($item-&gt;entity) {
    $img_urls[] = $item-&gt;entity-&gt;url();
  }
}


Then all field_image image urls available in $img_urls variable.