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
StoreManagement.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Store\Model
;
7
8
use
Magento\Store\Api\StoreManagementInterface
;
9
use Magento\Store\Model\ResourceModel\Store\CollectionFactory;
10
15
class
StoreManagement
implements
StoreManagementInterface
16
{
20
protected
$storesFactory
;
21
25
public
function
__construct
(CollectionFactory
$storesFactory
)
26
{
27
$this->storesFactory =
$storesFactory
;
28
}
29
33
public
function
getCount
()
34
{
35
$stores
= $this->storesFactory->create();
37
$stores
->setWithoutDefaultFilter();
38
return
$stores
->getSize();
39
}
40
}
Magento\Store\Api\StoreManagementInterface\getCount
getCount()
Magento\Store\Api\StoreManagementInterface
Definition:
StoreManagementInterface.php:12
Magento\Store\Model\StoreManagement
Definition:
StoreManagement.php:15
Magento\Store\Model\StoreManagement\$storesFactory
$storesFactory
Definition:
StoreManagement.php:20
Magento\Store\Model
Magento\Store\Model\StoreManagement\__construct
__construct(CollectionFactory $storesFactory)
Definition:
StoreManagement.php:25
$stores
$stores
Definition:
website_attribute_sync.php:95