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