File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
app/code/Magento/Ui/Component
lib/internal/Magento/Framework/View/Element Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ public function prepareDataSource(array & $dataSource)
234234 }
235235
236236 /**
237- * @return array
237+ * {@inheritdoc}
238238 */
239239 public function getDataSourceData ()
240240 {
Original file line number Diff line number Diff line change @@ -25,22 +25,25 @@ public function getComponentName()
2525 }
2626
2727 /**
28- * @inheritdoc
28+ * { @inheritdoc}
2929 */
3030 public function getDataSourceData ()
3131 {
3232 $ dataSource = [];
3333 $ id = $ this ->getContext ()->getRequestParam ($ this ->getContext ()->getDataProvider ()->getRequestFieldName ());
34- if ($ id ) { // case form
34+
35+ if ($ id ) {
3536 $ this ->getContext ()->getDataProvider ()
3637 ->addFilter ($ this ->getContext ()->getDataProvider ()->getPrimaryFieldName (), $ id );
3738 }
3839 $ data = $ this ->getContext ()->getDataProvider ()->getData ();
40+
3941 if (isset ($ data [$ id ])) {
4042 $ dataSource = [
4143 'data ' => $ data [$ id ]
4244 ];
4345 }
46+
4447 return $ dataSource ;
4548 }
4649}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function getComponentName()
3232 }
3333
3434 /**
35- * @inheritdoc
35+ * { @inheritdoc}
3636 */
3737 public function getDataSourceData ()
3838 {
Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ public function prepare();
118118 public function prepareDataSource (array & $ dataSource );
119119
120120 /**
121+ * Returns Data Source data
122+ *
121123 * @return array
122124 */
123125 public function getDataSourceData ();
You can’t perform that action at this time.
0 commit comments