currency-8.x-3.3/src/ConfigImporterInterface.php
src/ConfigImporterInterface.php
<?php
namespace Drupal\currency;
/**
* Defines a config importer.
*/
interface ConfigImporterInterface {
/**
* Returns all currencies that can be imported.
*
* @return \Drupal\currency\Entity\CurrencyInterface[]
* The currencies that can be imported.
*/
public function getImportableCurrencies();
/**
* Imports a currency.
*
* @param string $currency_code
* The 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[]
* The currency locales that can be imported.
*/
public function getImportableCurrencyLocales();
/**
* Imports a currency locale.
*
* @param string $locale
* The locale to import.
*
* @return \Drupal\currency\Entity\CurrencyLocaleInterface|false
* The imported currency locale or FALSE in case of errors.
*/
public function importCurrencyLocale($locale);
}
