Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
JsLayoutDataProviderPool.php
Go to the documentation of this file.
1 <?php
8 
16 {
23 
29  public function __construct(
30  array $jsLayoutDataProviders = []
31  ) {
32  $this->jsLayoutDataProviders = $jsLayoutDataProviders;
33  }
34 
38  public function getData()
39  {
40  $data = [];
41  if ($this->jsLayoutDataProviders) {
42  foreach ($this->jsLayoutDataProviders as $dataProvider) {
43  $data = array_merge_recursive($data, $dataProvider->getData());
44  }
45  }
46  return $data;
47  }
48 }