Sep 24, 2020 in Drupal 8, Snippets

Image url is a must-have for webpages to be properly shareable on social media. With this token snippet you can set a media entity url with image style token.

[node:field_image:entity:field_media_image:large:url]

This will refer to: 

  • Field image, which is a media field
  • The media entity has a field called field_media_image
  • The image style large