You are here

public function CountryResolverInterface::resolve in Commerce Core 8.2

Resolves the country.

Return value

\Drupal\commerce\Country|null The country object, if resolved. Otherwise NULL, indicating that the next resolver in the chain should be called.

3 methods override CountryResolverInterface::resolve()
ChainCountryResolver::resolve in src/Resolver/ChainCountryResolver.php
Resolves the country.
DefaultCountryResolver::resolve in src/Resolver/DefaultCountryResolver.php
Resolves the country.
StoreCountryResolver::resolve in modules/store/src/Resolver/StoreCountryResolver.php
Resolves the country.

File

src/Resolver/CountryResolverInterface.php, line 17

Class

CountryResolverInterface
Defines the interface for country resolvers.

Namespace

Drupal\commerce\Resolver

Code

public function resolve();