function lightning_media_update_8020 in Lightning Media 8.3
Same name and namespace in other branches
- 8.4 lightning_media.install \lightning_media_update_8020()
Sets the default value of the entity_browser.override_widget config switch.
1 call to lightning_media_update_8020()
- Update8020Test::testUpdate in tests/
src/ Kernel/ Update/ Update8020Test.php - Tests Lightning Media's 8020 update hook.
File
- ./
lightning_media.install, line 401 - Contains install and update routines for Lightning Media.
Code
function lightning_media_update_8020() {
Drupal::configFactory()
->getEditable('lightning_media.settings')
->set('entity_browser.override_widget', TRUE)
->save();
}