function geolocation_address_migrate_field_info_alter in Geolocation Field 8.3
Implements hook_migrate_field_info_alter().
File
- modules/
geolocation_address/ geolocation_address.module, line 381 - Provide address integration where due.
Code
function geolocation_address_migrate_field_info_alter(&$definitions) {
// When geolocation and also address modules are present, we can migrate both
// the geological locations and also the addresses into their own field.
if (!empty($definitions['location'])) {
$definitions['location']['class'] = Location::class;
$definitions['location']['provider'] = 'geolocation_address';
}
}