Author: Romain Ruaud (romain.ruaud@smile.fr)
Inheritance: extends Magento\Framework\View\Element\Template
Example #1
0
 /**
  * Set the default template for page variable blocks
  *
  * @param Template\Context                       $context       The template context
  * @param \Magento\Framework\Json\Helper\Data    $jsonHelper    The Magento's JSON Helper
  * @param \Smile\ElasticsuiteTracker\Helper\Data $trackerHelper The Smile Tracker helper
  * @param \Magento\Framework\Registry            $registry      Magento Core Registry
  * @param array                                  $data          The block data
  */
 public function __construct(Template\Context $context, \Magento\Framework\Json\Helper\Data $jsonHelper, \Smile\ElasticsuiteTracker\Helper\Data $trackerHelper, \Magento\Framework\Registry $registry, array $data = [])
 {
     $data['template'] = 'Smile_ElasticsuiteTracker::/variables/page.phtml';
     return parent::__construct($context, $jsonHelper, $trackerHelper, $registry, $data);
 }