You are here

public static function Openlayers::getLibraryVersion in Openlayers 7.3

Return the version of the Openlayers library in use.

Return value

string Return the version of the Openlayers library set in the configuration.

1 call to Openlayers::getLibraryVersion()
openlayers_examples in modules/openlayers_examples/openlayers_examples.module
Form handler.

File

src/Openlayers.php, line 249
Contains Openlayers.

Class

Openlayers
Class Openlayers.

Namespace

Drupal\openlayers

Code

public static function getLibraryVersion() {
  $variant = \Drupal\openlayers\Config::get('openlayers.variant');
  if (strpos($variant, 'local-') !== FALSE) {
    $version = self::getLocalLibraryVersion();
  }
  else {
    $version = \Drupal\openlayers\Config::get('openlayers.variant', NULL);
  }
  return $version;
}