You are here

function lazy_update_8305 in Lazy-load 8.3

Set lazySizes library path default.

File

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

Code

function lazy_update_8305() {
  $config = \Drupal::configFactory()
    ->getEditable('lazy.settings');
  $config
    ->set('libraryPath', '/libraries/lazysizes')
    ->save(TRUE);
}