Метод | Описание | |
---|---|---|
__construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, |
Set the default template for page variable blocks | |
getPageTypeIdentifier ( ) : string | Page type identifier built from route (ex: catalog/product/view => catalog_product_view) | |
getPageTypeInformations ( ) : array | List of the page type data | |
getPageTypeLabel ( ) : string | Human readable version of the page | |
getVariables ( ) : array | Append the page type data to the tracked variables list |
Метод | Описание | |
---|---|---|
getPageTypeLabelMap ( ) : array | Return the array of page labels from layout indexed by handle names. |
public __construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, |
||
$context | Magento\Framework\View\Element\Template\Context | The template context |
$jsonHelper | Magento\Framework\Json\Helper\Data | The Magento's JSON Helper |
$trackerHelper | The Smile Tracker helper | |
$registry | Magento\Framework\Registry | Magento Core Registry |
$pageTypeConfig | Magento\Framework\View\Layout\PageType\Config | The page type configuration |
$data | array | The block data |
public getPageTypeIdentifier ( ) : string | ||
Результат | string |
public getPageTypeInformations ( ) : array | ||
Результат | array |
public getPageTypeLabel ( ) : string | ||
Результат | string |
public getVariables ( ) : array | ||
Результат | array |