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-api
Test
_files
sources_rollback.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
use
Magento\Framework\App\ResourceConnection
;
9
use
Magento\InventoryApi\Api\Data\SourceInterface
;
10
use
Magento\TestFramework\Helper\Bootstrap
;
11
13
$connection
= Bootstrap::getObjectManager()->get(ResourceConnection::class);
14
$connection
->getConnection()->delete(
15
$connection
->getTableName(
'inventory_source'
),
16
[
17
SourceInterface::SOURCE_CODE .
' IN (?)'
=> [
'eu-1'
,
'eu-2'
,
'eu-3'
,
'eu-disabled'
,
'us-1'
],
18
]
19
);
Magento\TestFramework\Helper\Bootstrap
Definition:
Bootstrap.php:12
$connection
$connection
Definition:
sources_rollback.php:13
Magento\InventoryApi\Api\Data\SourceInterface
Definition:
SourceInterface.php:17
Magento\Framework\App\ResourceConnection