示例#1
0
 /**
  * Render the block if needed
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_isAfterPaymentSave()) {
         $this->setTemplate('hss/js.phtml');
         return parent::_toHtml();
     }
     if (!$this->_shouldRender) {
         return '';
     }
     return parent::_toHtml();
 }
示例#2
0
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->_eventManager->dispatch('payment_form_block_to_html_before', ['block' => $this]);
     return parent::_toHtml();
 }
示例#3
0
文件: Cc.php 项目: aiesh/magento2
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setChild('cards', $this->getCardsBlock());
     $this->setChild('method_form_block', $this->getMethodFormBlock());
     return parent::_toHtml();
 }