コード例 #1
0
ファイル: Data.php プロジェクト: aiesh/magento2
 /**
  * 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'] : [];
 }
コード例 #2
0
ファイル: Data.php プロジェクト: Atlis/docker-magento2
 /**
  * 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();
 }