Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
WebsitesOptionsProvider.php
Go to the documentation of this file.
1 <?php
7 
9 {
13  private $store;
14 
18  public function __construct(\Magento\Store\Model\System\Store $store)
19  {
20  $this->store = $store;
21  }
22 
26  public function toOptionArray()
27  {
28  return $this->store->getWebsiteValuesForForm();
29  }
30 }
__construct(\Magento\Store\Model\System\Store $store)