function jw_player_get_key in JW Player 8
Same name and namespace in other branches
- 7.2 jw_player.module \jw_player_get_key()
Gets the correct key for the corresponding JW Player version.
Return value
string The license key as entered in the UI.
File
- ./
jw_player.module, line 278 - Adds a theme function which allows theme developers to use the JW Player.
Code
function jw_player_get_key() {
$config = \Drupal::config('jw_player.settings');
return $config
->get('jw_player_key') ? $config
->get('jw_player_key') : NULL;
}