PHP Class Smile\ElasticsuiteTracker\Block\Variables\Page\Order

Author: Romain Ruaud ([email protected])
Inheritance: extends AbstractBlock
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, Data $trackerHelper, Magento\Framework\Registry $registry, Magento\Checkout\Model\Session $checkoutSession, array $data = [] ) Set the default template for page variable blocks
getVariables ( ) : array Return order and it's item related variables

Private Methods

Method Description
getOrderItemVariables ( Magento\Sales\Model\Order\Item $item ) : array Retrieve tracking variables for an order item

Method Details

__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, Magento\Checkout\Model\Session $checkoutSession, 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
$checkoutSession Magento\Checkout\Model\Session The checkout session
$data array The block data

getVariables() public method

Return order and it's item related variables
public getVariables ( ) : array
return array