Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SourceItemsDeleteInterfacePlugin.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
17 {
21  private $deleteSourceItemsConfiguration;
22 
28  public function __construct(
29  DeleteSourceItemsConfigurationInterface $deleteSourceItemsConfiguration
30  ) {
31  $this->deleteSourceItemsConfiguration = $deleteSourceItemsConfiguration;
32  }
33 
42  public function afterExecute(
44  $result,
45  array $sourceItems
46  ) {
47  $this->deleteSourceItemsConfiguration->execute($sourceItems);
48  }
49 }
$sourceItems
__construct(DeleteSourceItemsConfigurationInterface $deleteSourceItemsConfiguration)