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-inventory-catalog-admin-ui
Model
BulkOperationsConfig.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryCatalogAdminUi\Model
;
9
10
use
Magento\Framework\App\Config\ScopeConfigInterface
;
11
12
class
BulkOperationsConfig
13
{
14
const
XML_PATH_ASYNC_ENABLED
=
'cataloginventory/bulk_operations/async'
;
15
const
XML_PATH_BATCH_SIZE
=
'cataloginventory/bulk_operations/batch_size'
;
16
20
private
$scopeConfig;
21
25
public
function
__construct
(
ScopeConfigInterface
$scopeConfig)
26
{
27
$this->scopeConfig = $scopeConfig;
28
}
29
33
public
function
isAsyncEnabled
(): bool
34
{
35
return
(
bool
) $this->scopeConfig->getValue(self::XML_PATH_ASYNC_ENABLED);
36
}
37
41
public
function
getBatchSize
(): int
42
{
43
return
(
int
) max(1, (
int
) $this->scopeConfig->getValue(self::XML_PATH_BATCH_SIZE));
44
}
45
}
Magento\InventoryCatalogAdminUi\Model\BulkOperationsConfig
Definition:
BulkOperationsConfig.php:12
Magento\InventoryCatalogAdminUi\Model\BulkOperationsConfig\isAsyncEnabled
isAsyncEnabled()
Definition:
BulkOperationsConfig.php:33
Magento\InventoryCatalogAdminUi\Model\BulkOperationsConfig\XML_PATH_BATCH_SIZE
const XML_PATH_BATCH_SIZE
Definition:
BulkOperationsConfig.php:15
Magento\InventoryCatalogAdminUi\Model\BulkOperationsConfig\__construct
__construct(ScopeConfigInterface $scopeConfig)
Definition:
BulkOperationsConfig.php:25
Magento\InventoryCatalogAdminUi\Model
Definition:
BulkOperationsConfig.php:8
Magento\InventoryCatalogAdminUi\Model\BulkOperationsConfig\XML_PATH_ASYNC_ENABLED
const XML_PATH_ASYNC_ENABLED
Definition:
BulkOperationsConfig.php:14
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
Magento\InventoryCatalogAdminUi\Model\BulkOperationsConfig\getBatchSize
getBatchSize()
Definition:
BulkOperationsConfig.php:41