Commit b98f6104 authored by bojanz's avatar bojanz

Add a getResolvers() method to the chain resolvers.

parent 605aa3b5
......@@ -36,6 +36,13 @@ class ChainStoreResolver implements ChainStoreResolverInterface {
$this->resolvers[] = $resolver;
}
/**
* {@inheritdoc}
*/
public function getResolvers() {
return $this->resolvers;
}
/**
* {@inheritdoc}
*/
......
......@@ -23,4 +23,12 @@ interface ChainStoreResolverInterface extends StoreResolverInterface {
*/
public function addResolver(StoreResolverInterface $resolver);
/**
* Gets all added resolvers.
*
* @return \Drupal\commerce_store\Resolver\StoreResolverInterface[]
* The resolvers.
*/
public function getResolvers();
}
......@@ -36,6 +36,13 @@ class ChainCountryResolver implements ChainCountryResolverInterface {
$this->resolvers[] = $resolver;
}
/**
* {@inheritdoc}
*/
public function getResolvers() {
return $this->resolvers;
}
/**
* {@inheritdoc}
*/
......
......@@ -23,4 +23,12 @@ interface ChainCountryResolverInterface extends CountryResolverInterface {
*/
public function addResolver(CountryResolverInterface $resolver);
/**
* Gets all added resolvers.
*
* @return \Drupal\commerce\Resolver\CountryResolverInterface[]
* The resolvers.
*/
public function getResolvers();
}
......@@ -36,6 +36,13 @@ class ChainLocaleResolver implements ChainLocaleResolverInterface {
$this->resolvers[] = $resolver;
}
/**
* {@inheritdoc}
*/
public function getResolvers() {
return $this->resolvers;
}
/**
* {@inheritdoc}
*/
......
......@@ -23,4 +23,12 @@ interface ChainLocaleResolverInterface extends LocaleResolverInterface {
*/
public function addResolver(LocaleResolverInterface $resolver);
/**
* Gets all added resolvers.
*
* @return \Drupal\commerce\Resolver\LocaleResolverInterface[]
* The resolvers.
*/
public function getResolvers();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment