Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OptionHash.php
Go to the documentation of this file.
1 <?php
7 
10 
15 class OptionHash implements ArrayInterface
16 {
22  protected $_systemStore;
23 
28 
33  public function __construct(Store $systemStore, $withDefaultWebsite = false)
34  {
35  $this->_systemStore = $systemStore;
36  $this->_withDefaultWebsite = $withDefaultWebsite;
37  }
38 
44  public function toOptionArray()
45  {
46  return $this->_systemStore->getWebsiteOptionHash($this->_withDefaultWebsite);
47  }
48 }
__construct(Store $systemStore, $withDefaultWebsite=false)
Definition: OptionHash.php:33