You are here

function lightning_media_update_8005 in Lightning Media 8.4

Same name and namespace in other branches
  1. 8 lightning_media.install \lightning_media_update_8005()
  2. 8.2 lightning_media.install \lightning_media_update_8005()
  3. 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();
}