public static function Openlayers::detectLibrary in Openlayers 7.3
Check if the Openlayers library and settings are properly found.
Return value
bool|array Return the library array is found, FALSE otherwise.
3 calls to Openlayers::detectLibrary()
- Openlayers::getAttached in src/
Openlayers.php - Returns the list of attached libraries or js/css files.
- openlayers_requirements in ./
openlayers.install - Implements hook_requirements().
- openlayers_ui_admin_settings in modules/
openlayers_ui/ includes/ openlayers_ui.admin.inc - Menu callback; displays the openlayers module settings page.
File
- src/
Openlayers.php, line 435 - Contains Openlayers.
Class
- Openlayers
- Class Openlayers.
Namespace
Drupal\openlayersCode
public static function detectLibrary() {
$library = libraries_detect('openlayers3');
return isset($library['variants'][\Drupal\openlayers\Config::get('openlayers.variant', NULL)]) ? $library : FALSE;
}