Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Logger.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Ui\Block;
7 
10 
17 class Logger extends Template
18 {
22  protected $config;
23 
29  public function __construct(
30  Template\Context $context,
32  array $data = []
33  ) {
34  parent::__construct($context, $data);
35  $this->config = $config;
36  }
37 
43  public function isLoggingEnabled()
44  {
45  return $this->config->isLoggingEnabled();
46  }
47 
53  public function getSessionStorageKey()
54  {
55  return $this->config->getSessionStorageKey();
56  }
57 }
__construct(Template\Context $context, Config $config, array $data=[])
Definition: Logger.php:29