コード例 #1
0
ファイル: Combine.php プロジェクト: Doability/magento2dev
 /**
  * @return array
  */
 public function getNewChildSelectOptions()
 {
     $conditions = array(array('label' => $this->getHelper('Module\\Translation')->__('Conditions Combination'), 'value' => $this->getConditionCombine()));
     $customAttribute = $this->getCustomOptionsAttributes();
     if ($this->_useCustomOptions && !empty($customAttribute)) {
         $conditions[] = array('label' => $this->getCustomLabel(), 'value' => $this->getCustomOptions());
     }
     $conditions[] = array('label' => $this->getHelper('Module\\Translation')->__('Product Attribute'), 'value' => $this->getProductOptions());
     return array_merge_recursive(parent::getNewChildSelectOptions(), $conditions);
 }