Token for Video Thumbnail?

Created on 17 February 2018, almost 7 years ago
Updated 5 October 2023, about 1 year ago

I've been searching around for this for the last two hours haven't found any documentation.

I was looking for the token for video's thumbnail. You can output it in a view mode but I can't seem to find the token anywhere. I recall that there was a token in 7, which you could use when configuring Open Graph in Metatag.

Anybody know how to do this?

πŸ’¬ Support request
Status

Closed: won't fix

Version

2.4

Component

Video Embed Field (base module)

Created by

πŸ‡ΊπŸ‡ΈUnited States RKopacz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡―πŸ‡΄Jordan YazanMajadba

    Comment #7 it's working with Drupal 8
    but when I upgraded to Drupal 10 I got this error:

    Error: Call to undefined function Drupal\video_embed_field\Plugin\Field\FieldFormatter\file_create_url() in Drupal\video_embed_field\Plugin\Field\FieldFormatter\ThumbnailURL->viewElements() (line 85 of modules/contrib/video_embed_field/src/Plugin/Field/FieldFormatter/ThumbnailURL.php).

    I Fixed the deprecated function

    file_create_url($uri) \Drupal::service('file_url_generator')->generateAbsoluteString($uri)
    file_url_transform_relative($file_url) \Drupal::service('file_url_generator')->transformRelative($file_url)
    file_url_transform_relative(file_create_url($uri) \Drupal::service('file_url_generator')->generateString($uri)
    Drupal\Core\Url::fromUri(file_create_url($uri)) \Drupal::service('file_url_generator')->generate($uri)

Production build 0.71.5 2024