Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AdditionalFieldsProvider.php
Go to the documentation of this file.
1 <?php
7 
13 {
17  private $fieldsProviders;
18 
22  public function __construct(array $fieldsProviders)
23  {
24  $this->fieldsProviders = $fieldsProviders;
25  }
26 
30  public function getFields(array $productIds, $storeId)
31  {
32  $fields = [];
33  foreach ($this->fieldsProviders as $fieldsProvider) {
34  $fields[] = $fieldsProvider->getFields($productIds, $storeId);
35  }
36 
37  return array_replace_recursive(...$fields);
38  }
39 }
$fields
Definition: details.phtml:14