本文整理汇总了PHP中Magento\Backend\Block\Template::_toHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Template::_toHtml方法的具体用法?PHP Template::_toHtml怎么用?PHP Template::_toHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Backend\Block\Template
的用法示例。
在下文中一共展示了Template::_toHtml方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _toHtml
/**
* @return string
*/
protected function _toHtml()
{
if ($this->getActiveMenu()) {
return parent::_toHtml();
}
return false;
}
示例2: _toHtml
/**
* Render block
*
* @return string
*/
protected function _toHtml()
{
if (count($this->_messages->getUnread())) {
return parent::_toHtml();
}
return '';
}
示例3: _toHtml
/**
* Render block
*
* @return string
*/
protected function _toHtml()
{
if ($this->canShow()) {
$this->setHeaderText($this->escapeHtml(__('Incoming Message')));
$this->setCloseText($this->escapeHtml(__('close')));
$this->setReadDetailsText($this->escapeHtml(__('Read Details')));
$this->setNoticeMessageText($this->escapeHtml($this->_getLatestItem()->getTitle()));
$this->setNoticeMessageUrl($this->escapeUrl($this->_getLatestItem()->getUrl()));
$this->setSeverityText('critical');
return parent::_toHtml();
}
return '';
}
示例4: _toHtml
/**
* Prepare HTML
*
* @return string
*/
protected function _toHtml()
{
$this->_eventManager->dispatch('adminhtml_catalog_product_attribute_set_main_html_before', ['block' => $this]);
return parent::_toHtml();
}
示例5: _toHtml
/**
* @return string
*/
protected function _toHtml()
{
return $this->getPayment()->getMethod() === Directpost::METHOD_CODE ? parent::_toHtml() : '';
}
示例6: _toHtml
/**
* @return string
*/
protected function _toHtml()
{
if ($this->isShow()) {
return parent::_toHtml();
}
return '';
}
示例7: _toHtml
/**
* @return string
*/
protected function _toHtml()
{
return $this->getPayment()->getMethod() === \Tco\Checkout\Model\Checkout::CODE || $this->getPayment()->getMethod() === \Tco\Checkout\Model\Api::CODE ? parent::_toHtml() : '';
}
示例8: _toHtml
/**
* Set data to block
*
* @return string
*/
protected function _toHtml()
{
$agreement = $this->_getBillingAgreement();
$this->setReferenceId($agreement->getReferenceId());
$customerId = $agreement->getCustomerId();
$customer = $this->_customerAccountService->getCustomer($customerId);
$this->setCustomerEmail($customer->getEmail());
$this->setCustomerUrl($this->getUrl('customer/index/edit', array('id' => $customerId)));
$this->setStatus($agreement->getStatusLabel());
$this->setCreatedAt($this->formatDate($agreement->getCreatedAt(), 'short', true));
$this->setUpdatedAt($agreement->getUpdatedAt() ? $this->formatDate($agreement->getUpdatedAt(), 'short', true) : __('N/A'));
return parent::_toHtml();
}
示例9: _toHtml
/**
* Set data to block
*
* @return string
*/
protected function _toHtml()
{
$agreement = $this->_getBillingAgreement();
$this->setReferenceId($agreement->getReferenceId());
$customerId = $agreement->getCustomerId();
$customer = $this->_customerRepository->getById($customerId);
$this->setCustomerEmail($customer->getEmail());
$this->setCustomerUrl($this->getUrl('customer/index/edit', ['id' => $customerId]));
$this->setStatus($agreement->getStatusLabel());
$this->setCreatedAt($this->formatDate($agreement->getCreatedAt(), \IntlDateFormatter::SHORT, true));
$this->setUpdatedAt($agreement->getUpdatedAt() ? $this->formatDate($agreement->getUpdatedAt(), \IntlDateFormatter::SHORT, true) : __('N/A'));
return parent::_toHtml();
}
示例10: _toHtml
/**
* Prepare html output
*
* @return string
*/
protected function _toHtml()
{
if (!$this->_storeManager->isSingleStoreMode()) {
return parent::_toHtml();
}
return '';
}