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-graph-ql
Model
Layer
Context.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\CatalogGraphQl\Model\Layer
;
9
10
use
Magento\Catalog\Model\Layer\CollectionFilterInterface
;
11
use
Magento\Catalog\Model\Layer\ItemCollectionProviderInterface
;
12
use
Magento\Catalog\Model\Layer\StateKeyInterface
;
13
17
class
Context
implements
\Magento\Catalog\Model\Layer\ContextInterface
18
{
22
private
$collectionProvider;
23
27
private
$stateKey;
28
32
private
$collectionFilter;
33
39
public
function
__construct
(
40
ItemCollectionProviderInterface
$collectionProvider,
41
StateKeyInterface
$stateKey,
42
CollectionFilterInterface
$collectionFilter
43
) {
44
$this->collectionProvider = $collectionProvider;
45
$this->stateKey = $stateKey;
46
$this->collectionFilter = $collectionFilter;
47
}
48
52
public
function
getCollectionProvider
() :
ItemCollectionProviderInterface
53
{
54
return
$this->collectionProvider;
55
}
56
60
public
function
getStateKey
() :
StateKeyInterface
61
{
62
return
$this->stateKey;
63
}
64
68
public
function
getCollectionFilter
() :
CollectionFilterInterface
69
{
70
return
$this->collectionFilter;
71
}
72
}
Magento\Catalog\Model\Layer\CollectionFilterInterface
Definition:
CollectionFilterInterface.php:13
Magento\CatalogGraphQl\Model\Layer\Context\__construct
__construct(ItemCollectionProviderInterface $collectionProvider, StateKeyInterface $stateKey, CollectionFilterInterface $collectionFilter)
Definition:
Context.php:39
Magento\CatalogGraphQl\Model\Layer\Context
Definition:
Context.php:17
Magento\CatalogGraphQl\Model\Layer\Context\getCollectionProvider
getCollectionProvider()
Definition:
Context.php:52
Magento\CatalogGraphQl\Model\Layer
Definition:
CollectionProvider.php:8
Magento\Catalog\Model\Layer\StateKeyInterface
Definition:
StateKeyInterface.php:13
Magento\CatalogGraphQl\Model\Layer\Context\getCollectionFilter
getCollectionFilter()
Definition:
Context.php:68
Magento\CatalogGraphQl\Model\Layer\Context\getStateKey
getStateKey()
Definition:
Context.php:60
Magento\Catalog\Model\Layer\ItemCollectionProviderInterface
Definition:
ItemCollectionProviderInterface.php:14