You are here

function lightning_media_update_8021 in Lightning Media 8.3

Same name and namespace in other branches
  1. 8.4 lightning_media.install \lightning_media_update_8021()

Sets the default value of the revision_ui config switch.

1 call to lightning_media_update_8021()
Update8021Test::testUpdate in tests/src/Kernel/Update/Update8021Test.php
Tests Lightning Media's 8021 update hook.

File

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

Code

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