You are here

interface AmountFormatterManagerInterface in Currency 8.3

Defines an amount formatter plugin manager.

Hierarchy

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

... See full list

File

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

Namespace

Drupal\currency\Plugin\Currency\AmountFormatter
View 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

Namesort descending Modifiers Type Description Overrides
AmountFormatterManagerInterface::createInstance public function Creates an amount formatter. Overrides FactoryInterface::createInstance
AmountFormatterManagerInterface::getDefaultPlugin public function Gets the default formatter. 1
AmountFormatterManagerInterface::getDefaultPluginId public function Gets the default plugin ID. 1
AmountFormatterManagerInterface::setDefaultPluginId public function Sets the default plugin ID. 1
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
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4