protected function Random::getAddressFactory in Geocoder 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/Geocoder/Provider/Random.php \Drupal\geocoder\Plugin\Geocoder\Provider\Random::getAddressFactory()
Returns the address factory.
Return value
\Geocoder\Model\Address Return the address Factory.
File
- src/
Plugin/ Geocoder/ Provider/ Random.php, line 128
Class
- Random
- Class Random.
Namespace
Drupal\geocoder\Plugin\Geocoder\ProviderCode
protected function getAddressFactory() {
if (!isset($this->addressFactory)) {
$this->addressFactory = new Address('', new AdminLevelCollection());
}
return $this->addressFactory;
}