Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StoreOptionHash.php
Go to the documentation of this file.
1 <?php
9 
11 {
17  protected $_systemStore;
18 
22  public function __construct(\Magento\Store\Model\System\Store $systemStore)
23  {
24  $this->_systemStore = $systemStore;
25  }
26 
32  public function toOptionArray()
33  {
34  return $this->_systemStore->getStoreOptionHash();
35  }
36 }
__construct(\Magento\Store\Model\System\Store $systemStore)