DEV Community

David Loor
David Loor

Posted on • Originally published at davidloor.com on

Drupal 8+ media module does not create the default bundles (Media Types) after installation

Drupal 8+ media module does not create the default bundles (Media Types) after installation

When the media module that is part of the the Drupal 8+ core is installed, we expect that the default media entity types, [Document, Image, Audio file (local), Video file (local), Remote video] get created automatically, so they are available when creating a new media field. But, that is the case when we are using the standard profile installation, as you can read here:

When using a distribution, to install Drupal, the media module installation will not create the default bundles, so you will need the following steps to create them, using configuration management, if you don’t want to create them manually:

  1. Copy all the yml files that contain the media word in their name from core/profiles/standard/optional to the folder where you hav the yml config files of your projects.
  2. Import the configuration in your site, from the UI /admin/config/development/configuration or running drush cim

Top comments (0)

Hot sauce if you're wrong - web dev trivia for staff engineers

Hot sauce if you're wrong · web dev trivia for staff engineers (Chris vs Jeremy, Leet Heat S1.E4)

  • Shipping Fast: Test your knowledge of deployment strategies and techniques
  • Authentication: Prove you know your OAuth from your JWT
  • CSS: Demonstrate your styling expertise under pressure
  • Acronyms: Decode the alphabet soup of web development
  • Accessibility: Show your commitment to building for everyone

Contestants must answer rapid-fire questions across the full stack of modern web development. Get it right, earn points. Get it wrong? The spice level goes up!

Watch Video 🌶️🔥