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)

👋 Kindness is contagious

Delve into a trove of insights in this thoughtful post, celebrated by the welcoming DEV Community. Programmers of every stripe are invited to share their viewpoints and enrich our collective expertise.

A simple “thank you” can brighten someone’s day—drop yours in the comments below!

On DEV, exchanging knowledge lightens our path and forges deeper connections. Found this valuable? A quick note of gratitude to the author can make all the difference.

Get Started