You are here

function mediaelement_update_8101 in MediaElement 8

Set config for preventing duplicate play.

File

./mediaelement.install, line 11
Install, update, and uninstall hooks for the MediaElement module.

Code

function mediaelement_update_8101() {
  \Drupal::configFactory()
    ->getEditable('mediaelement.settings')
    ->set('attach_sitewide', FALSE)
    ->save(TRUE);
}