You are here

function varbase_media_preprocess_media_oembed_iframe__remote_video in Varbase Media 8.6

Same name and namespace in other branches
  1. 8.7 varbase_media.module \varbase_media_preprocess_media_oembed_iframe__remote_video()
  2. 9.0.x varbase_media.module \varbase_media_preprocess_media_oembed_iframe__remote_video()

Implements hook_preprocess_HOOK().

File

./varbase_media.module, line 511
Contains varbase_media.module.

Code

function varbase_media_preprocess_media_oembed_iframe__remote_video(&$variables) {

  // Send variables for the remote_video oembed iframe theme template.
  $query = \Drupal::request()->query;
  $variables['type'] = $query
    ->get('type');
  $variables['provider'] = $query
    ->get('provider');
  $variables['view_mode'] = $query
    ->get('view_mode');
  $variables['base_path'] = base_path();
  $variables['varbase_media_path'] = \Drupal::service('module_handler')
    ->getModule('varbase_media')
    ->getPath();
}