You are here

interface TaxNumberTypeManagerInterface in Commerce Core 8.2

Defines the interface for tax number type plugin managers.

Hierarchy

Expanded class hierarchy of TaxNumberTypeManagerInterface

All classes that implement TaxNumberTypeManagerInterface

1 file declares its use of TaxNumberTypeManagerInterface
TaxNumberDefaultWidget.php in modules/tax/src/Plugin/Field/FieldWidget/TaxNumberDefaultWidget.php

File

modules/tax/src/TaxNumberTypeManagerInterface.php, line 11

Namespace

Drupal\commerce_tax
View source
interface TaxNumberTypeManagerInterface extends PluginManagerInterface, FallbackPluginManagerInterface {

  /**
   * Gets the plugin ID for the given country code.
   *
   * If no country-specific plugin exists, the fallback plugin ID ("other")
   * will be returned.
   *
   * @param string $country_code
   *   The country code.
   *
   * @return string
   *   The plugin ID.
   */
  public function getPluginId($country_code);

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
FallbackPluginManagerInterface::getFallbackPluginId public function Gets a fallback id for a missing plugin. 5
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4
TaxNumberTypeManagerInterface::getPluginId public function Gets the plugin ID for the given country code. 1