_storeManager = $storeManager; } public function toOptionArray() { $stores = $this->_storeManager->getStores(); $options = []; foreach ($stores as $store) { $options[] = [ 'label' => $store->getName(), 'value' => $store->getId() ]; } return $options; } }