protected function getResultDelete(array $data)
    {
        unset($data['product_id']);

        $existing = $this->wishlist->getList($data);

        return array(
            'message' => '',
            'severity' => 'success',
            'quantity' => count($existing),
            'redirect' => empty($existing) ? 'wishlist' : ''
        );
    }
protected function getResultDelete(array $data)
    {
        unset($data['product_id']);

        $existing = $this->wishlist->getList($data);

        return array(
            'message' => '',
            'severity' => 'success',
            'quantity' => count($existing),
            'redirect' => empty($existing) ? 'wishlist' : ''
        );
    }
protected function getResultDelete ( array $ data ) { unset ( $ data [ 'product_id' ] ) ; $ existing = $ this -> wishlist -> getList ( $ data ) ; return array ( 'message' => '' , 'severity' => 'success' , 'quantity' => count ( $ existing ) , 'redirect' => empty ( $ existing ) ? 'wishlist' : '' ) ; }
Returns an array of resulting data when a product has been deleted from a wishlist
@param array $data
@return array
Returns an array of resulting data when a product has been deleted from a wishlist