Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Config.php
Go to the documentation of this file.
1 <?php
10 namespace Magento\Sales\Model;
11 
13 {
19  protected $_dataContainer;
20 
24  protected $_appState;
25 
30  public function __construct(\Magento\Sales\Model\Config\Data $dataContainer, \Magento\Framework\App\State $appState)
31  {
32  $this->_dataContainer = $dataContainer;
33  $this->_appState = $appState;
34  }
35 
44  public function getTotalsRenderer($section, $group, $code)
45  {
46  $path = implode('/', [$section, $group, $code, 'renderers', $this->_appState->getAreaCode()]);
47  return $this->_dataContainer->get($path);
48  }
49 
58  public function getGroupTotals($section, $group)
59  {
60  $path = implode('/', [$section, $group]);
61  return $this->_dataContainer->get($path);
62  }
63 
69  public function getAvailableProductTypes()
70  {
71  return $this->_dataContainer->get('order/available_product_types');
72  }
73 }
$group
Definition: sections.phtml:16
getGroupTotals($section, $group)
Definition: Config.php:58
__construct(\Magento\Sales\Model\Config\Data $dataContainer, \Magento\Framework\App\State $appState)
Definition: Config.php:30
getTotalsRenderer($section, $group, $code)
Definition: Config.php:44
$code
Definition: info.phtml:12