PHP Класс Smile\ElasticsuiteCatalog\Block\Navigation

Автор: Aurelien FOUCRET ([email protected])
Наследование: extends Magento\LayeredNavigation\Block\Navigation
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Catalog\Model\Layer\Resolver $layerResolver, Magento\Catalog\Model\Layer\FilterList $filterList, Magento\Catalog\Model\Layer\AvailabilityFlagInterface $visibilityFlag, Magento\Framework\ObjectManagerInterface $objectManager, Magento\Framework\Module\Manager $moduleManager, array $data ) Navigation constructor.
canShowBlock ( ) : boolean Check if we can show this block.
getActiveFilters ( ) : string Return index of the facets that are expanded for the current page :
getDisplayedFilters ( ) : array Returns facet that are displayed.

Защищенные методы

Метод Описание
_prepareLayout ( )

Приватные методы

Метод Описание
addFacets ( ) : void Append facets to the search requests using the coverage rate defined in admin.

Описание методов

__construct() публичный Метод

Navigation constructor.
public __construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Catalog\Model\Layer\Resolver $layerResolver, Magento\Catalog\Model\Layer\FilterList $filterList, Magento\Catalog\Model\Layer\AvailabilityFlagInterface $visibilityFlag, Magento\Framework\ObjectManagerInterface $objectManager, Magento\Framework\Module\Manager $moduleManager, array $data )
$context Magento\Framework\View\Element\Template\Context Application context
$layerResolver Magento\Catalog\Model\Layer\Resolver Layer Resolver
$filterList Magento\Catalog\Model\Layer\FilterList Filter List
$visibilityFlag Magento\Catalog\Model\Layer\AvailabilityFlagInterface Visibility Flag
$objectManager Magento\Framework\ObjectManagerInterface Object Manager
$moduleManager Magento\Framework\Module\Manager Module Manager
$data array Block Data

_prepareLayout() защищенный Метод

protected _prepareLayout ( )

canShowBlock() публичный Метод

According to @see \Magento\LayeredNavigationStaging\Block\Navigation::canShowBlock We should not show the block if staging is enabled and if we are currently previewing the results.
public canShowBlock ( ) : boolean
Результат boolean

getActiveFilters() публичный Метод

- nth first facets (depending of config) - facets with at least one selected filter
public getActiveFilters ( ) : string
Результат string

getDisplayedFilters() публичный Метод

Returns facet that are displayed.
public getDisplayedFilters ( ) : array
Результат array