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-paypal
Block
Adminhtml
System
Config
Fieldset
Hint.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Block\Adminhtml\System\Config\Fieldset
;
7
8
use
Magento\Backend\Block\Template
;
9
use
Magento\Framework\Data\Form\Element\AbstractElement
;
10
use
Magento\Framework\Data\Form\Element\Renderer\RendererInterface
;
11
16
class
Hint
extends
Template
implements
RendererInterface
17
{
22
protected
$_template
=
'Magento_Paypal::system/config/fieldset/hint.phtml'
;
23
28
public
function
render
(
AbstractElement
$element
)
29
{
30
$html =
''
;
31
32
if
(
$element
->getComment()) {
33
$html .= sprintf(
'<tr id="row_%s">'
,
$element
->getHtmlId());
34
$html .=
'<td colspan="1"><p class="note"><span>'
;
35
$html .= sprintf(
36
'<a href="%s" target="_blank">Configuration Details</a>'
,
37
$element
->getComment()
38
);
39
$html .=
'</span></p></td></tr>'
;
40
}
41
42
return
$html;
43
}
44
}
Magento\Backend\Block\Template
Definition:
Template.php:33
Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Hint\$_template
$_template
Definition:
Hint.php:22
Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Hint
Definition:
Hint.php:16
Magento\Framework\Data\Form\Element\Renderer\RendererInterface
Definition:
RendererInterface.php:18
Magento\Paypal\Block\Adminhtml\System\Config\Fieldset
Definition:
Expanded.php:6
Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Hint\render
render(AbstractElement $element)
Definition:
Hint.php:28
Magento\Framework\Data\Form\Element\AbstractElement
Definition:
AbstractElement.php:21
Magento\Backend\Block\Template
Definition:
Context.php:6
$element
$element
Definition:
element.phtml:12