![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-paypal/Block/Adminhtml/System/Config/Fieldset/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Paypal\Block\Adminhtml\System\Config\Fieldset; use Magento\Backend\Block\Template; use Magento\Framework\Data\Form\Element\AbstractElement; use Magento\Framework\Data\Form\Element\Renderer\RendererInterface; /** * Class Hint adds "Configuration Details" link to payment configuration. * `<comment>` node must be defined in `<group>` node and contain some link. */ class Hint extends Template implements RendererInterface { /** * @var string * @deprecated 100.1.0 */ protected $_template = 'Magento_Paypal::system/config/fieldset/hint.phtml'; /** * @param AbstractElement $element * @return string */ public function render(AbstractElement $element) { $html = ''; if ($element->getComment()) { $html .= sprintf('<tr id="row_%s">', $element->getHtmlId()); $html .= '<td colspan="1"><p class="note"><span>'; $html .= sprintf( '<a href="%s" target="_blank">Configuration Details</a>', $element->getComment() ); $html .= '</span></p></td></tr>'; } return $html; } }