Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-integration
Block
Adminhtml
Widget
Grid
Column
Renderer
Link
Activate.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link
;
9
10
use
Magento\Framework\DataObject
;
11
use
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link
;
12
use
Magento\Integration\Model\Integration
;
13
14
class
Activate
extends
Link
15
{
19
public
function
getCaption
()
20
{
21
return
$this->_row->getStatus() !=
Integration::STATUS_ACTIVE
?
__
(
'Activate'
) :
__
(
'Reauthorize'
);
22
}
23
28
protected
function
_getUrl
(
DataObject
$row
)
29
{
30
return
'javascript:void(0);'
;
31
}
32
36
protected
function
_getAttributes
()
37
{
38
return
array_merge(parent::_getAttributes(), [
'onclick'
=>
'integration.popup.show(this);'
]);
39
}
40
44
protected
function
_getDataAttributes
()
45
{
46
return
[
47
'row-id'
=> $this->_row->getId(),
48
'row-dialog'
=>
'permissions'
,
49
'row-is-reauthorize'
=> $this->_row->getStatus() ==
Integration::STATUS_INACTIVE
?
'0'
:
'1'
,
50
'row-is-token-exchange'
=> $this->_row->getEndpoint() && $this->_row->getIdentityLinkUrl() ?
'1'
:
'0'
51
];
52
}
53
}
Magento\Integration\Model\Integration\STATUS_INACTIVE
const STATUS_INACTIVE
Definition:
Integration.php:36
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link\Activate
Definition:
Activate.php:14
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link
Definition:
Link.php:13
Magento\Integration\Model\Integration
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link\Activate\_getDataAttributes
_getDataAttributes()
Definition:
Activate.php:44
__
__()
Definition:
__.php:13
Magento\Framework\DataObject
Definition:
DataObject.php:15
Magento\Integration\Model\Integration\STATUS_ACTIVE
const STATUS_ACTIVE
Definition:
Integration.php:38
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link\Activate\_getAttributes
_getAttributes()
Definition:
Activate.php:36
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link\Activate\_getUrl
_getUrl(DataObject $row)
Definition:
Activate.php:28
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link
Definition:
ActivateTest.php:7
Magento\Integration\Block\Adminhtml\Widget\Grid\Column\Renderer\Link\Activate\getCaption
getCaption()
Definition:
Activate.php:19
$row
$row
Definition:
cart_rule_free_shipping.php:12
Magento\Framework\DataObject
Definition:
Cache.php:6