interface AmountFormatterManagerInterface in Currency 8.3
Defines an amount formatter plugin manager.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\currency\Plugin\Currency\AmountFormatter\AmountFormatterManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of AmountFormatterManagerInterface
All classes that implement AmountFormatterManagerInterface
7 files declare their use of AmountFormatterManagerInterface
- AmountFormattingForm.php in src/
Form/ AmountFormattingForm.php - AmountFormattingFormTest.php in tests/
src/ Unit/ Controller/ AmountFormattingFormTest.php - AmountFormattingFormTest.php in tests/
src/ Unit/ Form/ AmountFormattingFormTest.php - Currency.php in src/
Entity/ Currency.php - CurrencyTest.php in tests/
src/ Unit/ Entity/ CurrencyTest.php
File
- src/
Plugin/ Currency/ AmountFormatter/ AmountFormatterManagerInterface.php, line 10
Namespace
Drupal\currency\Plugin\Currency\AmountFormatterView source
interface AmountFormatterManagerInterface extends PluginManagerInterface {
/**
* Gets the default plugin ID.
*
* @return string
*/
public function getDefaultPluginId();
/**
* Sets the default plugin ID.
*
* @param string $plugin_id
*
* @return $this
*/
public function setDefaultPluginId($plugin_id);
/**
* Gets the default formatter.
*
* @return \Drupal\currency\Plugin\Currency\AmountFormatter\AmountFormatterInterface
*/
public function getDefaultPlugin();
/**
* Creates an amount formatter.
*
* @param string $plugin_id
* The id of the plugin being instantiated.
* @param mixed[] $configuration
* An array of configuration relevant to the plugin instance.
*
* @return \Drupal\currency\Plugin\Currency\AmountFormatter\AmountFormatterInterface
*/
public function createInstance($plugin_id, array $configuration = array());
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AmountFormatterManagerInterface:: |
public | function |
Creates an amount formatter. Overrides FactoryInterface:: |
|
AmountFormatterManagerInterface:: |
public | function | Gets the default formatter. | 1 |
AmountFormatterManagerInterface:: |
public | function | Gets the default plugin ID. | 1 |
AmountFormatterManagerInterface:: |
public | function | Sets the default plugin ID. | 1 |
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 4 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 3 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |