You are here

function jw_player_use_legacy in JW Player 8

Same name and namespace in other branches
  1. 7.2 jw_player.module \jw_player_use_legacy()

Checks whether a legacy version is configured.

Return value

bool TRUE if any version older than 7 is used, FALSE otherwise.

3 calls to jw_player_use_legacy()
JwplayerPresetAdd::form in src/Form/JwplayerPresetAdd.php
Gets the actual form array to be built.
jw_player_libraries_info in ./jw_player.module
Implements hook_libraries_info().
jw_player_skins in ./jw_player.module
Retrieves information about JW Player skins.

File

./jw_player.module, line 267
Adds a theme function which allows theme developers to use the JW Player.

Code

function jw_player_use_legacy() {
  $config = \Drupal::config('jw_player.settings');
  return $config
    ->get('jw_player_version') < 7;
}