Skip to content

Commit e5a81cf

Browse files
Yuri KovsherDooffy
authored andcommitted
MAGETWO-34122: Possibility to configure UI data provider ActionRow for CMS grid
1 parent 60a674f commit e5a81cf

File tree

1 file changed

+5
-5
lines changed
  • app/code/Magento/Cms/Ui/DataProvider/Block/Row

1 file changed

+5
-5
lines changed

app/code/Magento/Cms/Ui/DataProvider/Block/Row/Actions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ public function __construct(UrlInterface $urlBuilder)
3434
/**
3535
* Get data
3636
*
37-
* @param array $dataRow
38-
* @param array $data
37+
* @param array $rowData
38+
* @param array $rowActionConfig
3939
* @return mixed
4040
*/
41-
public function getData(array $dataRow, array $data = [])
41+
public function getData(array $rowData, array $rowActionConfig = [])
4242
{
4343
return [
4444
'edit' => [
4545
'href' => $this->urlBuilder->getUrl(
46-
isset($data['url_path']) ? $data['url_path'] : static::URL_PATH,
47-
['block_id' => $dataRow['block_id']]
46+
isset($rowActionConfig['url_path']) ? $rowActionConfig['url_path'] : static::URL_PATH,
47+
['block_id' => $rowData['block_id']]
4848
),
4949
'label' => __('Edit'),
5050
]

0 commit comments

Comments
 (0)