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
Country.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Config\Model\Config\Source\Locale
;
11
16
class
Country
implements
\Magento\Framework\Option\ArrayInterface
17
{
21
protected
$_localeLists
;
22
26
public
function
__construct
(\
Magento
\Framework\
Locale
\ListsInterface $localeLists)
27
{
28
$this->_localeLists = $localeLists;
29
}
30
34
public
function
toOptionArray
()
35
{
36
return
$this->_localeLists->getOptionCountries();
37
}
38
}
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Config\Model\Config\Source\Locale
Definition:
Locale.php:16
Magento\Config\Model\Config\Source\Locale\Country
Definition:
Country.php:16
Magento\Config\Model\Config\Source\Locale\Country\__construct
__construct(\Magento\Framework\Locale\ListsInterface $localeLists)
Definition:
Country.php:26
Magento
Magento\Config\Model\Config\Source\Locale\Country\toOptionArray
toOptionArray()
Definition:
Country.php:34
Magento\Config\Model\Config\Source\Locale\Country\$_localeLists
$_localeLists
Definition:
Country.php:21
Magento\Config\Model\Config\Source\Locale
Definition:
Country.php:10