PHP 클래스 Smile\ElasticsuiteTracker\Block\Variables\Page\Base

저자: Romain Ruaud ([email protected])
상속: extends AbstractBlock
파일 보기 프로젝트 열기: smile-sa/elasticsuite

공개 메소드들

메소드 설명
__construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, Data $trackerHelper, Magento\Framework\Registry $registry, Magento\Framework\View\Layout\PageType\Config $pageTypeConfig, array $data = [] ) 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.

메소드 상세

__construct() 공개 메소드

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\Framework\View\Layout\PageType\Config $pageTypeConfig, 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
$pageTypeConfig Magento\Framework\View\Layout\PageType\Config The page type configuration
$data array The block data

getPageTypeIdentifier() 공개 메소드

Page type identifier built from route (ex: catalog/product/view => catalog_product_view)
public getPageTypeIdentifier ( ) : string
리턴 string

getPageTypeInformations() 공개 메소드

List of the page type data
public getPageTypeInformations ( ) : array
리턴 array

getPageTypeLabel() 공개 메소드

Human readable version of the page
public getPageTypeLabel ( ) : string
리턴 string

getVariables() 공개 메소드

Append the page type data to the tracked variables list
public getVariables ( ) : array
리턴 array