Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NotSyncedDataProvider.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
18  private $providers;
19 
24  public function __construct(
25  TMapFactory $tmapFactory,
26  array $providers = []
27  ) {
28  $this->providers = $tmapFactory->create(
29  [
30  'array' => $providers,
31  'type' => NotSyncedDataProviderInterface::class
32  ]
33  );
34  }
35 
39  public function getIds($mainTableName, $gridTableName)
40  {
41  $result = [];
42  foreach ($this->providers as $provider) {
43  $result = array_merge($result, $provider->getIds($mainTableName, $gridTableName));
44  }
45 
46  return array_unique($result);
47  }
48 }
__construct(TMapFactory $tmapFactory, array $providers=[])