Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
Model
Layer
Context.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Model\Layer
;
8
20
class
Context
implements
ContextInterface
21
{
25
protected
$collectionProvider
;
26
30
protected
$stateKey
;
31
35
protected
$collectionFilter
;
36
42
public
function
__construct
(
43
ItemCollectionProviderInterface
$collectionProvider
,
44
StateKeyInterface
$stateKey
,
45
CollectionFilterInterface
$collectionFilter
46
) {
47
$this->collectionProvider =
$collectionProvider
;
48
$this->stateKey =
$stateKey
;
49
$this->collectionFilter =
$collectionFilter
;
50
}
51
55
public
function
getCollectionProvider
()
56
{
57
return
$this->collectionProvider
;
58
}
59
63
public
function
getStateKey
()
64
{
65
return
$this->stateKey
;
66
}
67
71
public
function
getCollectionFilter
()
72
{
73
return
$this->collectionFilter
;
74
}
75
}
Magento\Catalog\Model\Layer\Context\getStateKey
getStateKey()
Definition:
Context.php:63
Magento\Catalog\Model\Layer\Context\getCollectionProvider
getCollectionProvider()
Definition:
Context.php:55
Magento\Catalog\Model\Layer\Context\getCollectionFilter
getCollectionFilter()
Definition:
Context.php:71
Magento\Catalog\Model\Layer\CollectionFilterInterface
Definition:
CollectionFilterInterface.php:13
Magento\Catalog\Model\Layer\Context
Definition:
Context.php:20
Magento\Catalog\Model\Layer\ContextInterface
Definition:
ContextInterface.php:20
Magento\Catalog\Model\Layer\StateKeyInterface
Definition:
StateKeyInterface.php:13
Magento\Catalog\Model\Layer\Context\$collectionProvider
$collectionProvider
Definition:
Context.php:25
Magento\Catalog\Model\Layer\Context\__construct
__construct(ItemCollectionProviderInterface $collectionProvider, StateKeyInterface $stateKey, CollectionFilterInterface $collectionFilter)
Definition:
Context.php:42
Magento\Catalog\Model\Layer\Context\$stateKey
$stateKey
Definition:
Context.php:30
Magento\Catalog\Model\Layer
Definition:
CategoryTest.php:6
Magento\Catalog\Model\Layer\ItemCollectionProviderInterface
Definition:
ItemCollectionProviderInterface.php:14
Magento\Catalog\Model\Layer\Context\$collectionFilter
$collectionFilter
Definition:
Context.php:35