You are here

interface FormHelperInterface in Currency 8.3

Defines form helpers.

Hierarchy

Expanded class hierarchy of FormHelperInterface

All classes that implement FormHelperInterface

13 files declare their use of FormHelperInterface
Currency.php in src/Plugin/views/filter/Currency.php
CurrencyAmount.php in src/Element/CurrencyAmount.php
CurrencyAmountTest.php in tests/src/Unit/Element/CurrencyAmountTest.php
CurrencyImportForm.php in src/Form/CurrencyImportForm.php
CurrencyImportFormTest.php in tests/src/Unit/Controller/CurrencyImportFormTest.php

... See full list

File

src/FormHelperInterface.php, line 8

Namespace

Drupal\currency
View source
interface FormHelperInterface {

  /**
   * Returns an options list of all currencies.
   *
   * @param \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 array
   *   Keys are currency codes. Values are human-readable currency labels.
   */
  public function getCurrencyOptions(array $currencies = NULL);

  /**
   * Returns an options list of all currency locales.
   *
   * @param \Drupal\currency\Entity\CurrencyLocaleInterface[]|null $currency_locales
   *   An array of currency locales to limit the options by, or NULL to allow
   *   all currency locales to be selected.
   *
   * @return array
   *   Keys are locales. Values are human-readable currency locale labels.
   */
  public function getCurrencyLocaleOptions(array $currency_locales = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
FormHelperInterface::getCurrencyLocaleOptions public function Returns an options list of all currency locales. 1
FormHelperInterface::getCurrencyOptions public function Returns an options list of all currencies. 1