function lightning_media_update_8005 in Lightning Media 8.4
Same name and namespace in other branches
- 8 lightning_media.install \lightning_media_update_8005()
- 8.2 lightning_media.install \lightning_media_update_8005()
- 8.3 lightning_media.install \lightning_media_update_8005()
Creates the media_browser form mode.
File
- ./
lightning_media.install, line 84 - Contains install and update routines for Lightning Media.
Code
function lightning_media_update_8005() {
\Drupal::service('module_installer')
->install([
'entity_browser',
]);
Config::forModule('lightning_media')
->getEntity('entity_form_mode', 'media.media_browser')
->save();
}