Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
source_item_configuration_rollback.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 use Magento\InventoryApi\Api\Data\SourceItemInterfaceFactory;
12 
14 $deleteSourceItemsConfiguration = Bootstrap::getObjectManager()->get(DeleteSourceItemsConfigurationInterface::class);
15 
17 $sourceItemInterfaceFactory = Bootstrap::getObjectManager()->get(SourceItemInterfaceFactory::class);
18 
21  SourceItemInterface::SOURCE_CODE => 'eu-1',
22  SourceItemInterface::SKU => 'SKU-1'
23  ]),
25  SourceItemInterface::SOURCE_CODE => 'eu-disabled',
26  SourceItemInterface::SKU => 'SKU-1'
27  ]),
29  SourceItemInterface::SOURCE_CODE => 'eu-2',
30  SourceItemInterface::SKU => 'SKU-3'
31  ])
32 ];
33