/**
  * Retrieve subtotal for item
  *
  * @param \Magento\Framework\DataObject $item
  * @return \Magento\Framework\DataObject
  */
 public function getSubTotals($item)
 {
     $this->_prepareSubTotals();
     $this->_subTotals->reset();
     return $this->_subTotals->countTotals($item->getChildren());
 }
Example #2
0
 /**
  * Get children of specified item
  *
  * @param \Magento\Framework\DataObject $item
  * @return array
  */
 public function getMultipleRows($item)
 {
     return $item->getChildren();
 }