You are here

public function ChainLocaleResolver::__construct in Price 8

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

Constructs a new ChainLocaleResolver object.

Parameters

\Drupal\price\Resolver\LocaleResolverInterface[] $resolvers: The resolvers.

File

src/Resolver/ChainLocaleResolver.php, line 23

Class

ChainLocaleResolver
Default implementation of the chain locale resolver.

Namespace

Drupal\price\Resolver

Code

public function __construct(array $resolvers = []) {
  $this->resolvers = $resolvers;
}