Answers for "Drupal 8 Get Media URL From Media Object"

1

drupal 8 get media image uri

$image_url = $media->field_media_image->entity->getFileUri();
file_create_url($image_url);
Posted by: Guest on October-01-2020

Code answers related to "Drupal 8 Get Media URL From Media Object"

Browse Popular Code Answers by Language