You are here

function media_update_8600 in Drupal 8

Updates media.settings to support OEmbed.

File

core/modules/media/media.install, line 223
Install, uninstall and update hooks for Media module.

Code

function media_update_8600() {
  \Drupal::configFactory()
    ->getEditable('media.settings')
    ->set('iframe_domain', '')
    ->set('oembed_providers_url', 'https://oembed.com/providers.json')
    ->save(TRUE);
}