Get paid to write Drupal tutorials on WebWash

Webinar: How to Manage Media Assets in Drupal 8

Prefer a tutorial? Then read “How to Manage Media Assets in Drupal 8

Yesterday I presented a webinar on how to manage media assets in Drupal 8. The webinar went for just over an hour and we looked at the current state of media management in Drupal 7 and what’s new in Drupal 8.

I spent the rest of the time demonstrating how to:

About the Author

Ivan is the founder of Web Wash and spends most of his time consulting and writing about Drupal. He's been working with Drupal for 10 years and has successfully completed several large Drupal projects in Australia.

Leave a Reply 5 comments

Eric Smith - January 21, 2017 Reply

Hi Ivan,

Great webinar.

Re adding videos from the entity browser.

Essentially that list is a set of plugins for EntityBrowserWidget – the entity browser module provides a base class of upload (Drupal\entity_browser\Plugin\EntityBrowser\Widget\Upload) that currently is extended for some local storage media entity modules (e.g media document, media image etc).

I can’t see any active work in the video embed fields for creating a widget for the browser, but it would be useful to have one.

Something similar to the Upload widget would be a good place to start, looking at the implementation for media_entity_image, looking at the getForm, prepareEntities and submit methods it should be simple(ish) to implement. The main difference would be there is no step for saving a local file prior to creating the actual entity.

The other option you have is to use inline entity forms and it’s media browser module which allows a full entity form plugin for the browser so you could expose the full video entity here.

    Ivan Zugec - January 21, 2017 Reply

    Thanks for the write up.

Stephen Cross - January 21, 2017 Reply

Hi Ivan –

Fantastic webinar. I will be sharing it with my community.

I see the biggest value of managing media as separate entities appears to be missing. Updates. When media is used in multiple locations, updating the source Media does not change all the locations.

Do you have any thoughts or solutions for this?



    Ivan Zugec - January 21, 2017 Reply

    Hi Stephen,

    Good question. I didn’t even think of this.

    I tested this out and you’re correct. None of the images/thumbnails updated except for the image rendered via the Image formatter on the “/media/1” page.

    After a bit of googling I found this issue:


Stephen Cross - January 23, 2017 Reply

Ivan – I’ve tested is bit more. I’m seeing inconsistent results as well. I’m posting an issue/question to d.o

Thanks for responding.


Leave a Reply: