Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NotificationDataProvider.php
Go to the documentation of this file.
1 <?php
8 
14 
19 {
23  private $pool;
24 
30  private $searchResult;
31 
37  private $searchCriteria;
38 
44  private $name;
45 
51  private $data;
52 
58  private $meta;
59 
68  public function __construct(
69  $name,
70  SearchResultInterface $searchResult,
71  SearchCriteriaInterface $searchCriteria,
72  PoolInterface $pool,
73  array $meta = [],
74  array $data = []
75  ) {
76  $this->name = $name;
77  $this->searchResult = $searchResult;
78  $this->searchCriteria = $searchCriteria;
79  $this->pool = $pool;
80  $this->meta = $meta;
81  $this->data = $data;
82  }
83 
87  public function getData()
88  {
90  foreach ($this->pool->getModifiersInstances() as $modifier) {
91  $this->data = $modifier->modifyData($this->data);
92  }
93 
94  return $this->data;
95  }
96 
100  public function getMeta()
101  {
103  foreach ($this->pool->getModifiersInstances() as $modifier) {
104  $this->meta = $modifier->modifyMeta($this->meta);
105  }
106  return $this->meta;
107  }
108 
112  public function getName()
113  {
114  return $this->name;
115  }
116 
120  public function getConfigData()
121  {
122  return isset($this->data['config']) ? $this->data['config'] : [];
123  }
124 
128  public function setConfigData($config)
129  {
130  $this->data['config'] = $config;
131 
132  return true;
133  }
134 
139  public function getFieldMetaInfo($fieldSetName, $fieldName)
140  {
141  return [];
142  }
143 
148  public function getFieldSetMetaInfo($fieldSetName)
149  {
150  return [];
151  }
152 
157  public function getFieldsMetaInfo($fieldSetName)
158  {
159  return [];
160  }
161 
165  public function getPrimaryFieldName()
166  {
167  return 'release_notification';
168  }
169 
173  public function getRequestFieldName()
174  {
175  return 'release_notification';
176  }
177 
182  public function addFilter(\Magento\Framework\Api\Filter $filter)
183  {
184  }
185 
190  public function addOrder($field, $direction)
191  {
192  }
193 
198  public function setLimit($offset, $size)
199  {
200  }
201 
205  public function getSearchCriteria()
206  {
207  return $this->searchCriteria;
208  }
209 
213  public function getSearchResult()
214  {
215  return $this->searchResult;
216  }
217 }
$config
Definition: fraud_order.php:17
$searchCriteria
__construct( $name, SearchResultInterface $searchResult, SearchCriteriaInterface $searchCriteria, PoolInterface $pool, array $meta=[], array $data=[])