You are here

public function ExchangeRateProviderManagerInterface::createInstance in Currency 8.3

Creates an exchange rate provider.

Parameters

string $plugin_id: The id of the plugin being instantiated.

mixed[] $configuration: An array of configuration relevant to the plugin instance.

Return value

\Drupal\currency\Plugin\Currency\ExchangeRateProvider\ExchangeRateProviderInterface

Overrides FactoryInterface::createInstance

File

src/Plugin/Currency/ExchangeRateProvider/ExchangeRateProviderManagerInterface.php, line 23

Class

ExchangeRateProviderManagerInterface
Defines an amount formatter plugin manager.

Namespace

Drupal\currency\Plugin\Currency\ExchangeRateProvider

Code

public function createInstance($plugin_id, array $configuration = array());