Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultStoreScopeProvider.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Store\Model;
8 
12 
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 }