You are here

function lightning_media_update_8022 in Lightning Media 8.4

Sets the default value of the revision_ui config switch.

1 call to lightning_media_update_8022()
Update8022Test::testUpdate in tests/src/Kernel/Update/Update8022Test.php
Tests Lightning Media's 8022 update hook.

File

./lightning_media.install, line 373
Contains install and update routines for Lightning Media.

Code

function lightning_media_update_8022() {
  Drupal::configFactory()
    ->getEditable('lightning_media.settings')
    ->set('revision_ui', TRUE)
    ->save();
}