You are here

function mediaelement_get_cdn_url in MediaElement 8

Gets the base path for the configured CDN.

Parameters

string $cdn_name: The name of the CDN to connect to.

Return value

string The base URL of the CDN.

1 call to mediaelement_get_cdn_url()
mediaelement_library_info_build in ./mediaelement.module
Implements hook_library_info_build().

File

./mediaelement.module, line 101
Primary module file.

Code

function mediaelement_get_cdn_url($cdn_name) {
  $cdns = [
    'cdnjs' => '//cdnjs.cloudflare.com/ajax/libs/mediaelement',
  ];
  return $cdns[$cdn_name];
}