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

Image of Datadog

Master Mobile Monitoring for iOS Apps

Monitor your app’s health with real-time insights into crash-free rates, start times, and more. Optimize performance and prevent user churn by addressing critical issues like app hangs, and ANRs. Learn how to keep your iOS app running smoothly across all devices by downloading this eBook.

Get The eBook

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay