New answers tagged

0

file_create_url has been deprecated. Use \Drupal::service('file_url_generator') instead. $image_uri = $node->field_my_media->entity->field_media_image->entity->getFileUri(); $image_url = \Drupal::service('file_url_generator')->generateAbsoluteString($image_uri);


0

The solution ended up being needing to enable mod_rewrite as described in Image styles do not work. No idea why some images were generating fine while others weren't, as it seems like all should be affected equally but, in either case, the issue was resolved all around by enabling mod_rewrite.


0

Guys use the field type Entity radio and select the type of content you need, in this case it was medium, and it brought me the values that I have in drupal, thank you very much for your help


Top 50 recent answers are included