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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more