interface ConfigImporterInterface in Currency 8.3
Defines a config importer.
Hierarchy
- interface \Drupal\currency\ConfigImporterInterface
Expanded class hierarchy of ConfigImporterInterface
All classes that implement ConfigImporterInterface
6 files declare their use of ConfigImporterInterface
- CurrencyImportForm.php in src/
Form/ CurrencyImportForm.php - CurrencyImportFormTest.php in tests/
src/ Unit/ Controller/ CurrencyImportFormTest.php - CurrencyImportFormTest.php in tests/
src/ Unit/ Form/ CurrencyImportFormTest.php - CurrencyLocaleImportForm.php in src/
Form/ CurrencyLocaleImportForm.php - CurrencyLocaleImportFormTest.php in tests/
src/ Unit/ Controller/ CurrencyLocaleImportFormTest.php
File
- src/
ConfigImporterInterface.php, line 8
Namespace
Drupal\currencyView source
interface ConfigImporterInterface {
/**
* Gets all currencies that can be imported.
*
* @return \Drupal\currency\Entity\CurrencyInterface[]
*/
public function getImportableCurrencies();
/**
* Imports a currency.
*
* @param string $currency_code
*
* @return \Drupal\currency\Entity\CurrencyInterface|false
* The imported currency or FALSE in case of errors.
*/
public function importCurrency($currency_code);
/**
* Gets all currency locales that can be imported.
*
* @return \Drupal\currency\Entity\CurrencyLocaleInterface[]
*/
public function getImportableCurrencyLocales();
/**
* Imports a currency locale.
*
* @param string $locale
*
* @return \Drupal\currency\Entity\CurrencyLocaleInterface|false
* The imported currency locale or FALSE in case of errors.
*/
public function importCurrencyLocale($locale);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigImporterInterface:: |
public | function | Gets all currencies that can be imported. | 1 |
ConfigImporterInterface:: |
public | function | Gets all currency locales that can be imported. | 1 |
ConfigImporterInterface:: |
public | function | Imports a currency. | 1 |
ConfigImporterInterface:: |
public | function | Imports a currency locale. | 1 |