You are here

public function AmountFormatterManagerInterface::createInstance in Currency 8.3

Creates an amount formatter.

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\AmountFormatter\AmountFormatterInterface

Overrides FactoryInterface::createInstance

File

src/Plugin/Currency/AmountFormatter/AmountFormatterManagerInterface.php, line 45

Class

AmountFormatterManagerInterface
Defines an amount formatter plugin manager.

Namespace

Drupal\currency\Plugin\Currency\AmountFormatter

Code

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