Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultTotals.php
Go to the documentation of this file.
1 <?php
7 
9 
15 class DefaultTotals extends \Magento\Sales\Block\Adminhtml\Order\Create\Totals
16 {
22  protected $_template = 'Magento_Sales::order/create/totals/default.phtml';
23 
27  protected $priceCurrency;
28 
34  protected function _getSession()
35  {
36  return $this->_sessionQuote;
37  }
38 
44  public function getStore()
45  {
46  return $this->_getSession()->getStore();
47  }
48 
55  public function formatPrice($value)
56  {
57  return $this->priceCurrency->format(
58  $value,
59  true,
60  PriceCurrencyInterface::DEFAULT_PRECISION,
61  $this->getStore()
62  );
63  }
64 }
$value
Definition: gender.phtml:16