Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProductRenderCollectorComposite.php
Go to the documentation of this file.
1 <?php
7 
10 
16 {
20  private $productProviders = [];
21 
26  public function __construct(array $productProviders = [])
27  {
28  $this->productProviders = $productProviders;
29  }
30 
34  public function collect(ProductInterface $product, ProductRenderInterface $productRender)
35  {
36  foreach ($this->productProviders as $provider) {
37  $provider->collect($product, $productRender);
38  }
39  }
40 }
collect(ProductInterface $product, ProductRenderInterface $productRender)