Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SectionConfig.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Customer\Block;
7 
13 {
17  protected $sectionConfig;
18 
26 
33  public function __construct(
34  \Magento\Framework\View\Element\Template\Context $context,
35  \Magento\Framework\Config\DataInterface $sectionConfig,
36  array $data = [],
37  array $clientSideSections = []
38  ) {
39  parent::__construct($context, $data);
40  $this->sectionConfig = $sectionConfig;
41  $this->clientSideSections = array_values($clientSideSections);
42  }
43 
49  public function getSections()
50  {
51  return $this->sectionConfig->get('sections');
52  }
53 
58  public function getClientSideSections()
59  {
61  }
62 }
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Config\DataInterface $sectionConfig, array $data=[], array $clientSideSections=[])