Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Hint.php
Go to the documentation of this file.
1 <?php
7 
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 }
$element
Definition: element.phtml:12