original_string: public function deleteFromWishlist($wishlist_action_model)
      {
          $product = array(
              'user_id' => $this->getCartUid(),
              'store_id' => $this->getStoreId(),
              'product_id' => $this->getSubmitted('product_id')
          );
  
          $result = $wishlist_action_model->delete($product);
  
          if ($this->isAjax()) {
              $this->outputJson($result);
          }
  
          $this->redirect($result['redirect'], $result['message'], $result['severity']);
      }
code: public function deleteFromWishlist($wishlist_action_model)
      {
          $product = array(
              'user_id' => $this->getCartUid(),
              'store_id' => $this->getStoreId(),
              'product_id' => $this->getSubmitted('product_id')
          );
  
          $result = $wishlist_action_model->delete($product);
  
          if ($this->isAjax()) {
              $this->outputJson($result);
          }
  
          $this->redirect($result['redirect'], $result['message'], $result['severity']);
      }
code_tokens: public function deleteFromWishlist ( $ wishlist_action_model ) { $ product = array ( 'user_id' => $ this -> getCartUid ( ) , 'store_id' => $ this -> getStoreId ( ) , 'product_id' => $ this -> getSubmitted ( 'product_id' ) ) ; $ result = $ wishlist_action_model -> delete ( $ product ) ; if ( $ this -> isAjax ( ) ) { $ this -> outputJson ( $ result ) ; } $ this -> redirect ( $ result [ 'redirect' ] , $ result [ 'message' ] , $ result [ 'severity' ] ) ; }
docstring: Deletes a submitted product from the wishlist
  @param \gplcart\core\models\WishlistAction $wishlist_action_model
docstring_tokens: Deletes a submitted product from the wishlist