You are here

public function DefaultCountryResolver::__construct in Price 3.0.x

Same name and namespace in other branches
  1. 8 src/Resolver/DefaultCountryResolver.php \Drupal\price\Resolver\DefaultCountryResolver::__construct()
  2. 3.x src/Resolver/DefaultCountryResolver.php \Drupal\price\Resolver\DefaultCountryResolver::__construct()
  3. 2.0.x src/Resolver/DefaultCountryResolver.php \Drupal\price\Resolver\DefaultCountryResolver::__construct()
  4. 2.x src/Resolver/DefaultCountryResolver.php \Drupal\price\Resolver\DefaultCountryResolver::__construct()

Constructs a new DefaultCountryResolver object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/Resolver/DefaultCountryResolver.php, line 26

Class

DefaultCountryResolver
Returns the site's default country.

Namespace

Drupal\price\Resolver

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->configFactory = $config_factory;
}