Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Country.php
Go to the documentation of this file.
1 <?php
11 
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 }
__construct(\Magento\Framework\Locale\ListsInterface $localeLists)
Definition: Country.php:26