public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $additional = $observer->getAdditional();
        $conditions = (array) $additional->getConditions();
        $conditions = array_merge_recursive($conditions, [$this->getShopgateCondition()]);
        $additional->setConditions($conditions);

        return $this;
    }
public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $additional = $observer->getAdditional();
        $conditions = (array) $additional->getConditions();
        $conditions = array_merge_recursive($conditions, [$this->getShopgateCondition()]);
        $additional->setConditions($conditions);

        return $this;
    }
public function execute ( \ Magento \ Framework \ Event \ Observer $ observer ) { $ additional = $ observer -> getAdditional ( ) ; $ conditions = ( array ) $ additional -> getConditions ( ) ; $ conditions = array_merge_recursive ( $ conditions , [ $ this -> getShopgateCondition ( ) ] ) ; $ additional -> setConditions ( $ conditions ) ; return $ this ; }
Execute observer.

@param \Magento\Framework\Event\Observer $observer

@return $this
Execute observer .