5 * Install file for video_embed_media.
9 * Implements hook_install().
11 function video_embed_media_install() {
12 if (\Drupal::moduleHandler()->moduleExists('media_entity_embeddable_video')) {
13 \Drupal::service('video_embed_media.upgrade_manager')->upgrade();
15 // Copy the video icons into the right place.
16 $icon_folder = drupal_get_path('module', 'video_embed_media') . '/images/icons';
17 $destination = \Drupal::config('media_entity.settings')->get('icon_base');
18 media_entity_copy_icons($icon_folder, $destination);