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-review
Block
Adminhtml
Rss
Grid
Link.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Review\Block\Adminhtml\Rss\Grid
;
7
14
class
Link
extends
\Magento\Framework\View\Element\Template
15
{
19
protected
$_template
=
'Magento_Review::rss/grid/link.phtml'
;
20
24
protected
$rssUrlBuilder
;
25
31
public
function
__construct
(
32
\
Magento
\Framework\
View
\Element\Template\
Context
$context,
33
\
Magento
\Framework\
App
\
Rss
\UrlBuilderInterface
$rssUrlBuilder
,
34
array
$data
= []
35
) {
36
$this->rssUrlBuilder =
$rssUrlBuilder
;
37
parent::__construct($context,
$data
);
38
}
39
43
protected
function
_construct
()
44
{
45
$this->setId(
'grid.rss.link'
);
46
parent::_construct();
47
}
48
52
public
function
getLink
()
53
{
54
return
$this->rssUrlBuilder->getUrl($this->
getLinkParams
());
55
}
56
60
public
function
getLabel
()
61
{
62
return
__
(
'Pending Reviews RSS'
);
63
}
64
70
public
function
isRssAllowed
()
71
{
72
return
true
;
73
}
74
78
protected
function
getLinkParams
()
79
{
80
return
[
'type'
=>
'review'
];
81
}
82
}
Magento\Backend\Block\Template\Context
Definition:
Context.php:23
Magento\Review\Block\Adminhtml\Rss\Grid\Link\getLink
getLink()
Definition:
Link.php:52
Magento\Review\Block\Adminhtml\Rss\Grid
Definition:
Link.php:6
Magento\Framework\App
Magento\Review\Block\Adminhtml\Rss\Grid\Link\_construct
_construct()
Definition:
Link.php:43
Magento\Review\Block\Adminhtml\Rss\Grid\Link\$_template
$_template
Definition:
Link.php:19
Magento\Review\Block\Adminhtml\Rss\Grid\Link
Definition:
Link.php:14
__
__()
Definition:
__.php:13
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Review\Block\Adminhtml\Rss\Grid\Link\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder, array $data=[])
Definition:
Link.php:31
Magento\Review\Block\Adminhtml\Rss\Grid\Link\isRssAllowed
isRssAllowed()
Definition:
Link.php:70
Magento\Review\Block\Adminhtml\Rss\Grid\Link\getLinkParams
getLinkParams()
Definition:
Link.php:78
Magento
Magento\Review\Block\Adminhtml\Rss\Grid\Link\getLabel
getLabel()
Definition:
Link.php:60
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Review\Block\Adminhtml\Rss
Definition:
Rss.php:14
Magento\Review\Block\Adminhtml\Rss\Grid\Link\$rssUrlBuilder
$rssUrlBuilder
Definition:
Link.php:24
Magento\Review\Block\View
Definition:
View.php:15