Skip to content

Commit dcf1d17

Browse files
author
Dmytro Poperechnyy
committed
MAGETWO-28876: Added new attribute to Cms PageActions
- Changed attribute name;
1 parent e7e005d commit dcf1d17

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

app/code/Magento/Cms/Ui/Component/Listing/Column/PageActions.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ class PageActions extends Column
2626
/** @var UrlInterface */
2727
protected $urlBuilder;
2828

29-
/** @var string */
30-
private $urlEdit;
29+
/**
30+
* @var string
31+
*/
32+
private $editUrl;
3133

3234
/**
3335
* @param ContextInterface $context
@@ -36,7 +38,7 @@ class PageActions extends Column
3638
* @param UrlInterface $urlBuilder
3739
* @param array $components
3840
* @param array $data
39-
* @param string $urlEdit
41+
* @param string $editUrl
4042
*/
4143
public function __construct(
4244
ContextInterface $context,
@@ -45,11 +47,11 @@ public function __construct(
4547
UrlInterface $urlBuilder,
4648
array $components = [],
4749
array $data = [],
48-
$urlEdit = self::CMS_URL_PATH_EDIT
50+
$editUrl = self::CMS_URL_PATH_EDIT
4951
) {
5052
$this->urlBuilder = $urlBuilder;
5153
$this->actionUrlBuilder = $actionUrlBuilder;
52-
$this->urlEdit = $urlEdit;
54+
$this->editUrl = $editUrl;
5355
parent::__construct($context, $uiComponentFactory, $components, $data);
5456
}
5557

@@ -66,7 +68,7 @@ public function prepareDataSource(array & $dataSource)
6668
$name = $this->getData('name');
6769
if (isset($item['page_id'])) {
6870
$item[$name]['edit'] = [
69-
'href' => $this->urlBuilder->getUrl($this->urlEdit, ['page_id' => $item['page_id']]),
71+
'href' => $this->urlBuilder->getUrl($this->editUrl, ['page_id' => $item['page_id']]),
7072
'label' => __('Edit')
7173
];
7274
$item[$name]['delete'] = [

0 commit comments

Comments
 (0)