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-store
Model
DefaultStoreScopeProvider.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Store\Model
;
8
9
use
Magento\Framework\Model\Entity\ScopeProviderInterface
;
10
use
Magento\Store\Model\Store
;
11
use
Magento\Framework\Model\Entity\ScopeFactory
;
12
16
class
DefaultStoreScopeProvider
implements
ScopeProviderInterface
17
{
18
22
private
$scopeFactory;
23
29
public
function
__construct
(
30
ScopeFactory
$scopeFactory
31
) {
32
$this->scopeFactory = $scopeFactory;
33
}
34
41
public
function
getContext
(
$entityType
, $entityData = [])
42
{
43
return
$this->scopeFactory->create(
Store::STORE_ID
,
Store::DEFAULT_STORE_ID
,
null
);
44
}
45
}
Magento\Store\Model\Store\DEFAULT_STORE_ID
const DEFAULT_STORE_ID
Definition:
Store.php:124
Magento\Framework\Model\Entity\ScopeProviderInterface
Definition:
ScopeProviderInterface.php:12
$entityType
$entityType
Definition:
attribute_set_with_image_attribute.php:13
Magento\Framework\Model\Entity\ScopeFactory
Definition:
ScopeFactory.php:14
Magento\Store\Model\Store\STORE_ID
const STORE_ID
Definition:
Store.php:47
Magento\Store\Model
Magento\Store\Model\DefaultStoreScopeProvider\getContext
getContext($entityType, $entityData=[])
Definition:
DefaultStoreScopeProvider.php:41
Magento\Store\Model\DefaultStoreScopeProvider
Definition:
DefaultStoreScopeProvider.php:16
Magento\Store\Model\Store
Definition:
Store.php:38
Magento\Store\Model\DefaultStoreScopeProvider\__construct
__construct(ScopeFactory $scopeFactory)
Definition:
DefaultStoreScopeProvider.php:29