original_string: protected function getRelatedProduct()
      {
          $options = array(
              'status' => 1,
              'store_id' => $this->store_id,
              'product_id' => $this->data_product['product_id'],
              'limit' => array(0, $this->config('related_limit', 12))
          );
  
          $product_ids = (array) $this->product->getRelated($options);
  
          $products = array();
  
          if (!empty($product_ids)) {
              $products = (array) $this->product->getList(array('product_id' => $product_ids));
          }
  
          $this->prepareEntityItems($products, array('entity' => 'product'));
          return $products;
      }
code: protected function getRelatedProduct()
      {
          $options = array(
              'status' => 1,
              'store_id' => $this->store_id,
              'product_id' => $this->data_product['product_id'],
              'limit' => array(0, $this->config('related_limit', 12))
          );
  
          $product_ids = (array) $this->product->getRelated($options);
  
          $products = array();
  
          if (!empty($product_ids)) {
              $products = (array) $this->product->getList(array('product_id' => $product_ids));
          }
  
          $this->prepareEntityItems($products, array('entity' => 'product'));
          return $products;
      }
code_tokens: protected function getRelatedProduct ( ) { $ options = array ( 'status' => 1 , 'store_id' => $ this -> store_id , 'product_id' => $ this -> data_product [ 'product_id' ] , 'limit' => array ( 0 , $ this -> config ( 'related_limit' , 12 ) ) ) ; $ product_ids = ( array ) $ this -> product -> getRelated ( $ options ) ; $ products = array ( ) ; if ( ! empty ( $ product_ids ) ) { $ products = ( array ) $ this -> product -> getList ( array ( 'product_id' => $ product_ids ) ) ; } $ this -> prepareEntityItems ( $ products , array ( 'entity' => 'product' ) ) ; return $ products ; }
docstring: Returns an array of related products
  @return array
docstring_tokens: Returns an array of related products