/** * Retrieve array of allowed product types for bundle selection product * * @return array */ public function getAllowedSelectionTypes() { $configData = $this->config->getType(\Magento\Catalog\Model\Product\Type::TYPE_BUNDLE); return isset($configData['allowed_selection_types']) ? $configData['allowed_selection_types'] : []; }
/** * Retrieve array of allowed product types for bundle selection product * * @return array */ public function getAllowedSelectionTypes() { $configData = $this->_config->getType('bundle'); return isset($configData['allowed_selection_types']) ? $configData['allowed_selection_types'] : array(); }