You are here

public function FormHelperInterface::getCurrencyOptions in Currency 8.3

Returns an options list of all currencies.

Parameters

\Drupal\currency\Entity\CurrencyInterface[]|null $currencies: An array of currencies to limit the options by, or NULL to allow all currencies to be selected.

Return value

array Keys are currency codes. Values are human-readable currency labels.

1 method overrides FormHelperInterface::getCurrencyOptions()
FormHelper::getCurrencyOptions in src/FormHelper.php
Returns an options list of all currencies.

File

src/FormHelperInterface.php, line 20

Class

FormHelperInterface
Defines form helpers.

Namespace

Drupal\currency

Code

public function getCurrencyOptions(array $currencies = NULL);