original_string: 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)));
      }
code: 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)));
      }
code_tokens: 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 ) ) ) ; }
docstring: Returns an array of resulting data when a product has been added to the wishlist
  @param array $data
  @return array
docstring_tokens: Returns an array of resulting data when a product has been added to the wishlist