You are here

function lazy_update_8302 in Lazy-load 8.3

Update lazy module configuration.

File

./lazy.install, line 172
Install, update, and uninstall functions for the Lazy-load module.

Code

function lazy_update_8302() {
  $config = \Drupal::configFactory()
    ->getEditable('lazy.settings');
  $config
    ->set('preferNative', TRUE)
    ->save();
}