__construct() public method

Set the default template for page variable blocks
public __construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, Data $trackerHelper, Magento\Framework\Registry $registry, array $data = [] )
$context Magento\Framework\View\Element\Template\Context The template context
$jsonHelper Magento\Framework\Json\Helper\Data The Magento's JSON Helper
$trackerHelper Smile\ElasticsuiteTracker\Helper\Data The Smile Tracker helper
$registry Magento\Framework\Registry Magento Core Registry
$data array The block data
Beispiel #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 \Magento\Cms\Model\Page                $page          The CMS Page
  * @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, \Magento\Cms\Model\Page $page, array $data = [])
 {
     $this->page = $page;
     parent::__construct($context, $jsonHelper, $trackerHelper, $registry, $data);
 }
Beispiel #2
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 \Magento\Checkout\Model\Session        $checkoutSession The checkout session
  * @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, \Magento\Checkout\Model\Session $checkoutSession, array $data = [])
 {
     $this->checkoutSession = $checkoutSession;
     parent::__construct($context, $jsonHelper, $trackerHelper, $registry, $data);
 }
Beispiel #3
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 \Magento\Framework\View\Layout\PageType\Config $pageTypeConfig The page type configuration
  * @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, \Magento\Framework\View\Layout\PageType\Config $pageTypeConfig, array $data = [])
 {
     $this->pageTypeConfig = $pageTypeConfig;
     return parent::__construct($context, $jsonHelper, $trackerHelper, $registry, $data);
 }
Beispiel #4
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 \Magento\Catalog\Model\Layer\Resolver  $layerResolver The Magento layer resolver
  * @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, \Magento\Catalog\Model\Layer\Resolver $layerResolver, array $data = [])
 {
     $this->catalogLayer = $layerResolver->get();
     parent::__construct($context, $jsonHelper, $trackerHelper, $registry, $data);
 }