Install
Works with Drupal: ^8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
12.05 KB
MD5: 94dee8a54e5702f2fe2713356e2e5194
SHA-1: 91a039f0e538c5c71ac99852d701dc1dc7ba12ef
SHA-256: a19391c072a7fd7073506db2c11bdb24f72c897616261d34c851536e83271b41
Download zip
17.57 KB
MD5: d0194878943ededd40e059db594b0004
SHA-1: 2df883658392de945dbb5549324bf5b4b84270a9
SHA-256: dd230a9aadcf38b0eadf53b61e0e81013d93ea1c05314484d850bc778b146144
Release notes
Added the ability to disable the "add media" section of the media library field widget: #3224564: Add a media library field widget setting to hide the "add media" form
A few caveats, though:
- This only works in Drupal 9.3 and later. In Drupal 9.2 and earlier, you can apply this core patch to enable the feature. (See #3224530: Pass the media library state object to createAccess() for the original issue.)
- This does NOT affect CKEditor. That can be added separately if there is enough demand for it.
- Due to a limitation in core, this only works for the default form mode. In order to ensure it works reliably, it cannot be configured for any other form mode. (The default form mode is the most commonly used one, so this shouldn't be an issue for most sites.)