/** * @return array */ public function getBackordersOption() { if ($this->moduleManager->isEnabled('Magento_CatalogInventory')) { return $this->backorders->toOptionArray(); } return []; }
/** * @return array */ public function getBackordersOption() { if ($this->catalogData->isModuleEnabled('Magento_CatalogInventory')) { return $this->backorders->toOptionArray(); } return array(); }
/** * Retrieve Backorders Options * * @return array */ public function getBackordersOption() { return $this->_backorders->toOptionArray(); }