You are here

function lazy_update_8304 in Lazy-load 8.3

Remove "formatters" settings from the Lazy configuration.

Now both "Image (Lazy-load)" and "Responsive image (Lazy-load)" image- formatters are enabled at all times, as long as the core's "Image" and "Responsive image" modules, respectively, are also enabled.

File

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

Code

function lazy_update_8304() {
  $config = \Drupal::configFactory()
    ->getEditable('lazy.settings');
  $config
    ->clear('formatters')
    ->save(TRUE);
}