Example #1
0
 /**
  * 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'] : [];
 }
Example #2
0
 /**
  * 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();
 }