Allow creation of new Video Embed Field media entities using the Media Browser

Created on 13 March 2019, over 5 years ago
Updated 11 February 2023, almost 2 years ago

Problem/Motivation

Attempt to use Media Library widget, where field is configured to allow Video Embed Field media source.

With cores' provided media source types, a quick-add form is presented at above the list of media items. When using VEF selector, no quick add form is present.

Proposed resolution

Add a Drupal\video_embed_media\Form\VideoEmbedForm class similar to core's Drupal\media_library\Form\OEmbedForm that allows specifying a video embed URL, and register the class using hook_media_source_info_alter().

Remaining tasks

Code review.

User interface changes

The Media Browser popup will contain a new "Add Video via URL" field for video embed Media types.

Before

After

API changes

None.

Data model changes

None.

✨ Feature request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France musa.thomas France πŸ‡«πŸ‡·

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