Italy.php in Geolocation Field 8.3
File
modules/geolocation_google_maps/src/Plugin/geolocation/GeocoderCountryFormatting/Italy.php
View source
<?php
namespace Drupal\geolocation_google_maps\Plugin\geolocation\GeocoderCountryFormatting;
use Drupal\geolocation_google_maps\GoogleCountryFormattingBase;
class Italy extends GoogleCountryFormattingBase {
public function format(array $atomics) {
$address_elements = parent::format($atomics);
if (isset($atomics['county']) && $atomics['county']) {
$address_elements['administrativeArea'] = $atomics['countyCode'];
}
return $address_elements;
}
}
Classes
Name |
Description |
Italy |
Provides address formatting. |