source/Application/Model/DiscountList.php
public function getBasketBundleDiscounts($oBasket, $oUser = null)
    {
        $aList = [];
        $aDiscList = $this->_getList($oUser)->getArray();
        /** @var \OxidEsales\Eshop\Application\Model\Discount $oDiscount */
        foreach ($aDiscList as $oDiscount) {
            if ($oDiscount->isForBundleBasket($oBasket)) {
                $aList[$oDiscount->getId()] = $oDiscount;
            }
        }

        return $aList;
    }
public function getBasketBundleDiscounts($oBasket, $oUser = null)
    {
        $aList = [];
        $aDiscList = $this->_getList($oUser)->getArray();
        /** @var \OxidEsales\Eshop\Application\Model\Discount $oDiscount */
        foreach ($aDiscList as $oDiscount) {
            if ($oDiscount->isForBundleBasket($oBasket)) {
                $aList[$oDiscount->getId()] = $oDiscount;
            }
        }

        return $aList;
    }
public function getBasketBundleDiscounts ( $ oBasket , $ oUser = null ) { $ aList = [ ] ; $ aDiscList = $ this -> _getList ( $ oUser ) -> getArray ( ) ; /** @var \OxidEsales\Eshop\Application\Model\Discount $oDiscount */ foreach ( $ aDiscList as $ oDiscount ) { if ( $ oDiscount -> isForBundleBasket ( $ oBasket ) ) { $ aList [ $ oDiscount -> getId ( ) ] = $ oDiscount ; } } return $ aList ; }
Returns array of basket bundle discounts

@param \OxidEsales\Eshop\Application\Model\Basket $oBasket oxbasket object
@param \OxidEsales\Eshop\Application\Model\User   $oUser   oxuser object (optional)

@return array
Returns array of basket bundle discounts