You are here

protected function Currency::getCurrencyAmountFormatterManager in Currency 8.3

Gets the currency amount formatter manager.

Return value

\Drupal\currency\Plugin\Currency\AmountFormatter\AmountFormatterManagerInterface

File

src/Entity/Currency.php, line 381

Class

Currency
Defines a currency entity class.

Namespace

Drupal\currency\Entity

Code

protected function getCurrencyAmountFormatterManager() {
  if (!$this->currencyAmountFormatterManager) {
    $this->currencyAmountFormatterManager = \Drupal::service('plugin.manager.currency.amount_formatter');
  }
  return $this->currencyAmountFormatterManager;
}