public function AddressToGeo::setFormatter in Geolocation Address Link 8
Set formatter.
You could override this method to use the DefaultFormatter() instead.
1 call to AddressToGeo::setFormatter()
- AddressToGeo::__construct in src/
AddressToGeo.php - Constructor.
File
- src/
AddressToGeo.php, line 143
Class
- AddressToGeo
- Class AddressToGeo.
Namespace
Drupal\geolocation_address_linkCode
public function setFormatter() {
$default_options = [
'locale' => $this->formatLanguage,
'origin_country' => $this->formatCountry,
];
$this->formatter = new PostalLabelFormatter($this->addressFormatRepository, $this->countryRepository, $this->subdivisionRepository, $default_options);
}