You are here

function video_embed_html5_update_8001 in Video Embed HTML5 8

Add default configuration to Video Embed HTML5.

File

./video_embed_html5.install, line 6

Code

function video_embed_html5_update_8001() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('video_embed_html5.config');
  $config
    ->set('add_placeholder', TRUE);
  $config
    ->set('placeholder', NULL);
  $config
    ->save(TRUE);
}