protected function getResultAdded(array $data)
    {
        $options = array(
            'user_id' => $data['user_id'],
            'store_id' => $data['store_id']
        );

        $href = $this->url->get('wishlist');
        $existing = $this->wishlist->getList($options);

        return array(
            'redirect' => '',
            'severity' => 'success',
            'quantity' => count($existing),
            'wishlist_id' => $data['wishlist_id'],
            'message' => $this->translation->text('Product has been added to your <a href="@url">wishlist</a>', array(
                '@url' => $href)));
    }
protected function getResultAdded(array $data)
    {
        $options = array(
            'user_id' => $data['user_id'],
            'store_id' => $data['store_id']
        );

        $href = $this->url->get('wishlist');
        $existing = $this->wishlist->getList($options);

        return array(
            'redirect' => '',
            'severity' => 'success',
            'quantity' => count($existing),
            'wishlist_id' => $data['wishlist_id'],
            'message' => $this->translation->text('Product has been added to your <a href="@url">wishlist</a>', array(
                '@url' => $href)));
    }
protected function getResultAdded ( array $ data ) { $ options = array ( 'user_id' => $ data [ 'user_id' ] , 'store_id' => $ data [ 'store_id' ] ) ; $ href = $ this -> url -> get ( 'wishlist' ) ; $ existing = $ this -> wishlist -> getList ( $ options ) ; return array ( 'redirect' => '' , 'severity' => 'success' , 'quantity' => count ( $ existing ) , 'wishlist_id' => $ data [ 'wishlist_id' ] , 'message' => $ this -> translation -> text ( 'Product has been added to your <a href="@url">wishlist</a>' , array ( '@url' => $ href ) ) ) ; }
Returns an array of resulting data when a product has been added to the wishlist
@param array $data
@return array
Returns an array of resulting data when a product has been added to the wishlist