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
All.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Model\Config\Source\Locale\Currency
;
7
12
class
All
implements
\Magento\Framework\Option\ArrayInterface
13
{
17
protected
$_options
;
18
22
protected
$_localeLists
;
23
27
public
function
__construct
(\
Magento
\Framework\
Locale
\ListsInterface $localeLists)
28
{
29
$this->_localeLists = $localeLists;
30
}
31
36
public
function
toOptionArray
($isMultiselect =
false
)
37
{
38
if
(!$this->_options) {
39
$this->_options = $this->_localeLists->getOptionAllCurrencies();
40
}
41
$options
=
$this->_options
;
42
if
(!$isMultiselect) {
43
array_unshift(
$options
, [
'value'
=>
''
,
'label'
=>
''
]);
44
}
45
46
return
$options
;
47
}
48
}
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Config\Model\Config\Source\Locale\Currency\All\toOptionArray
toOptionArray($isMultiselect=false)
Definition:
All.php:36
Magento\Config\Model\Config\Source\Locale
Definition:
Locale.php:16
Magento\Config\Model\Config\Source\Locale\Currency\All\$_localeLists
$_localeLists
Definition:
All.php:22
Magento\Config\Model\Config\Source\Locale\Currency\All\__construct
__construct(\Magento\Framework\Locale\ListsInterface $localeLists)
Definition:
All.php:27
Magento\Config\Model\Config\Source\Locale\Currency
Definition:
All.php:6
Magento\Config\Model\Config\Source\Locale\Currency\All
Definition:
All.php:12
Magento
Magento\Config\Model\Config\Source\Locale\Currency\All\$_options
$_options
Definition:
All.php:17
$options
$options
Definition:
multiple_mixed_products.php:29