-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from magento-mpi/MPI-PR
Stories: - MAGETWO-51658 Kount Status - MAGETWO-54499 PayPal Payments Configuration UX Update
- Loading branch information
Showing
75 changed files
with
4,252 additions
and
495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,34 +3,42 @@ | |
* Copyright © 2016 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
// @codingStandardsIgnoreFile | ||
|
||
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; | ||
|
||
/** | ||
* Renderer for PayPal banner in System Configuration | ||
* @author Magento Core Team <[email protected]> | ||
* Class Hint adds "Configuration Details" link to payment configuration. | ||
* `<comment>` node must be defined in `<group>` node and contain some link. | ||
*/ | ||
class Hint extends \Magento\Backend\Block\Template implements \Magento\Framework\Data\Form\Element\Renderer\RendererInterface | ||
class Hint extends Template implements RendererInterface | ||
{ | ||
/** | ||
* @var string | ||
* @deprecated | ||
*/ | ||
protected $_template = 'Magento_Paypal::system/config/fieldset/hint.phtml'; | ||
|
||
/** | ||
* Render fieldset html | ||
* | ||
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element | ||
* @param AbstractElement $element | ||
* @return string | ||
*/ | ||
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element) | ||
public function render(AbstractElement $element) | ||
{ | ||
$elementOriginalData = $element->getOriginalData(); | ||
if (isset($elementOriginalData['help_link'])) { | ||
$this->setHelpLink($elementOriginalData['help_link']); | ||
$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 $this->toHtml(); | ||
|
||
return $html; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.