Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-config
Model
Config
Source
Locale
Currency.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Config\Model\Config\Source\Locale
;
11
16
class
Currency
implements
\Magento\Framework\Option\ArrayInterface
17
{
21
protected
$_options
;
22
26
protected
$_localeLists
;
27
31
public
function
__construct
(\
Magento
\Framework\
Locale
\ListsInterface $localeLists)
32
{
33
$this->_localeLists = $localeLists;
34
}
35
39
public
function
toOptionArray
()
40
{
41
if
(!$this->_options) {
42
$this->_options = $this->_localeLists->getOptionCurrencies();
43
}
44
$options
=
$this->_options
;
45
return
$options
;
46
}
47
}
Magento\Config\Model\Config\Source\Locale\Currency\$_options
$_options
Definition:
Currency.php:21
Magento\Config\Model\Config\Source\Locale\Currency\toOptionArray
toOptionArray()
Definition:
Currency.php:39
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Config\Model\Config\Source\Locale
Definition:
Locale.php:16
Magento
Magento\Config\Model\Config\Source\Locale\Currency
Definition:
Currency.php:16
Magento\Config\Model\Config\Source\Locale\Currency\$_localeLists
$_localeLists
Definition:
Currency.php:26
Magento\Config\Model\Config\Source\Locale
Definition:
Country.php:10
$options
$options
Definition:
multiple_mixed_products.php:29
Magento\Config\Model\Config\Source\Locale\Currency\__construct
__construct(\Magento\Framework\Locale\ListsInterface $localeLists)
Definition:
Currency.php:31