You are here

mediaelement.install in MediaElement 8

Same filename and directory in other branches
  1. 6 mediaelement.install
  2. 7.2 mediaelement.install
  3. 7 mediaelement.install

Install, update, and uninstall hooks for the MediaElement module.

File

mediaelement.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall hooks for the MediaElement module.
 */

/**
 * Set config for preventing duplicate play.
 */
function mediaelement_update_8101() {
  \Drupal::configFactory()
    ->getEditable('mediaelement.settings')
    ->set('attach_sitewide', FALSE)
    ->save(TRUE);
}

Functions

Namesort descending Description
mediaelement_update_8101 Set config for preventing duplicate play.