original_string: protected function getWidgetCartPreview(array $cart)
      {
          if (empty($cart['items'])) {
              return '';
          }
  
          $options = array(
              'cart' => $cart,
              'limit' => $this->config('cart_preview_limit', 5)
          );
  
          return $this->render('cart/preview', $options, true);
      }
code: protected function getWidgetCartPreview(array $cart)
      {
          if (empty($cart['items'])) {
              return '';
          }
  
          $options = array(
              'cart' => $cart,
              'limit' => $this->config('cart_preview_limit', 5)
          );
  
          return $this->render('cart/preview', $options, true);
      }
code_tokens: protected function getWidgetCartPreview ( array $ cart ) { if ( empty ( $ cart [ 'items' ] ) ) { return '' ; } $ options = array ( 'cart' => $ cart , 'limit' => $ this -> config ( 'cart_preview_limit' , 5 ) ) ; return $ this -> render ( 'cart/preview' , $ options , true ) ; }
docstring: Returns rendered cart preview
  @param array $cart
  @return string
docstring_tokens: Returns rendered cart preview