0

I am trying to add header images to my pages. I am currently getting the image in the form of a background using file_url(node.field_custom_image.entity.field_media_image.entity.fileuri) the problem with this is it doesn't get the default image if a image isn't present. How can I get the image url or fall back to the default image?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.