Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Composite.php
Go to the documentation of this file.
1 <?php
8 
10 {
16  private $itemProviders;
17 
23  public function __construct($itemProviders = [])
24  {
25  $this->itemProviders = $itemProviders;
26  }
27 
31  public function getItems($storeId)
32  {
33  $items = [];
34 
35  foreach ($this->itemProviders as $resolver) {
36  foreach ($resolver->getItems($storeId) as $item) {
37  $items[] = $item;
38  }
39  }
40 
41  return $items;
42  }
43 }
$items