commerce-8.x-2.8/src/Resolver/ChainCountryResolverInterface.php

src/Resolver/ChainCountryResolverInterface.php
<?php

namespace Drupal\commerce\Resolver;

/**
 * Runs the added resolvers one by one until one of them returns the country.
 *
 * Each resolver in the chain can be another chain, which is why this interface
 * extends the country resolver one.
 */
interface ChainCountryResolverInterface extends CountryResolverInterface {

  /**
   * Adds a resolver.
   *
   * @param \Drupal\commerce\Resolver\CountryResolverInterface $resolver
   *   The resolver.
   */
  public function addResolver(CountryResolverInterface $resolver);

  /**
   * Gets all added resolvers.
   *
   * @return \Drupal\commerce\Resolver\CountryResolverInterface[]
   *   The resolvers.
   */
  public function getResolvers();

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc