<?php

/**
 * @file
 * Contains update functions for d_media module.
 */

/**
 * Allow upload svg to media image field.
 */
function d_media_update_8001() {
  Drupal::service('d_update')
    ->updateConfigurations('module/d_media', 'd_media.enable_svg_upload');
}

/**
 * Enable lazy loading on media entities.
 */
function d_media_update_8002() {
  \Drupal::service('d_update')
    ->updateConfigurations('module/d_media', 'd_media.8002');
}
