Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've had the need on a few occasions to leverage the raw ID of the video from within a template. My usecase has been from accessing the fields value directly in various paragraph templates and doing some custom embeds. This function has added some flexibility for me.
Comments
Comment #2
lpeabody CreditAttribution: lpeabody commentedComment #3
lpeabody CreditAttribution: lpeabody commentedPatch was formatted incorrectly.
Comment #8
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedNW for a patch that applies. Also this needs tests. I'm not convinced this is a common requirement, can you elaborate on your use case?
Comment #9
RgnYLDZ CreditAttribution: RgnYLDZ commentedI have a similar need wich might be an example case;
I want to display the thumbnail and the embedded video the same time so I can use them in a twig template.
I basically will hide the video and fade it in screen when user clicks on the thumbnail.
So in this case we'll need both of them ready in dom.
Comment #10
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedWith the advent of Media in core, the Video Embed Field module has moved to being minimally maintained. Only issues which assist in the migration to Media in core will be committed. To read more about this decision, please see: #3089599: Maintenance status for Video Embed Field now that media is in core.
Comment #11
srdtwc CreditAttribution: srdtwc at DevCollaborative, LLC commentedHere us an updated patch with Drupal 10 compatibility
Comment #12
srdtwc CreditAttribution: srdtwc at DevCollaborative, LLC commentedPrevious patch was missing blank line at end of file. I believe this one should work.