Info.php 910 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Renderer for Payflow Link information
  8. */
  9. namespace Magento\Paypal\Block\Adminhtml\System\Config\Payflowlink;
  10. class Info extends \Magento\Config\Block\System\Config\Form\Field
  11. {
  12. /**
  13. * Template path
  14. *
  15. * @var string
  16. */
  17. protected $_template = 'Magento_Paypal::system/config/payflowlink/info.phtml';
  18. /**
  19. * Render fieldset html
  20. *
  21. * @param \Magento\Framework\Data\Form\Element\AbstractElement $element
  22. * @return string
  23. */
  24. public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
  25. {
  26. $columns = $this->getRequest()->getParam('website') || $this->getRequest()->getParam('store') ? 5 : 4;
  27. return $this->_decorateRowHtml($element, "<td colspan='{$columns}'>" . $this->toHtml() . '</td>');
  28. }
  29. }