Media module video files as thumbnails

Created on 23 November 2013, over 11 years ago
Updated 18 July 2025, 16 days ago

I wanted to add a class to the img tag rendered from a YouTube thumbnail, I found I needed to add it in the following way. I will add a patch to do this.

$element[$delta]['file']['#contents']['#attributes']['class'][] = $settings['class'];
Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom dwkitchen London

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.

Production build 0.71.5 2024