function geolocation_google_maps_library_info_build in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 modules/geolocation_google_maps/geolocation_google_maps.module \geolocation_google_maps_library_info_build()
Implements hook_library_info_build().
File
- modules/
geolocation_google_maps/ geolocation_google_maps.module, line 11 - Google Maps hooks.
Code
function geolocation_google_maps_library_info_build() {
$libraries = [];
$libraries['google'] = [
'version' => '1.x',
'js' => [
Drupal::service('plugin.manager.geolocation.mapprovider')
->getMapProvider('google_maps')
->getGoogleMapsApiUrl() => [
'type' => 'external',
],
],
'dependencies' => [
'geolocation_google_maps/googlemapsapi',
],
];
return $libraries;
}