_storeManager = $storeManager; } /** * @return array */ public function toOptionArray() { if (!$this->_options) { $this->_options = []; foreach ($this->_storeManager->getWebsites() as $website) { $id = $website->getId(); $name = $website->getName(); if ($id != 0) { $this->_options[] = ['value' => $id, 'label' => $name]; } } } return $this->_options; } }