Автор: Romain Ruaud (romain.ruaud@smile.fr)
Наследование: extends Smile\ElasticsuiteTracker\Block\Variables\AbstractBlock
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }