You are here

public static function Openlayers::getLibrary in Openlayers 7.3

Return information about the Openlayers 3 if installed.

Return value

array|false Return an array from hook_libraries_info() if the library is found, otherwise return False.

File

src/Openlayers.php, line 239
Contains Openlayers.

Class

Openlayers
Class Openlayers.

Namespace

Drupal\openlayers

Code

public static function getLibrary() {
  return libraries_detect('openlayers3');
}