Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Code.php
Go to the documentation of this file.
1 <?php
9 
15 {
20 
26  public function __construct(
27  \Magento\Framework\View\Element\Template\Context $context,
28  \Magento\GoogleAdwords\Helper\Data $googleAdwordsData,
29  array $data = []
30  ) {
31  $this->_googleAdwordsData = $googleAdwordsData;
32  parent::__construct($context, $data);
33  }
34 
40  protected function _toHtml()
41  {
42  return $this->_googleAdwordsData->isGoogleAdwordsActive() ? parent::_toHtml() : '';
43  }
44 
48  public function getHelper()
49  {
51  }
52 }
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\GoogleAdwords\Helper\Data $googleAdwordsData, array $data=[])
Definition: Code.php:26