/** * @return string */ protected function _toHtml() { if ($this->getActiveMenu()) { return parent::_toHtml(); } return false; }
/** * Render block * * @return string */ protected function _toHtml() { if (count($this->_messages->getUnread())) { return parent::_toHtml(); } return ''; }
/** * 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 ''; }
/** * Prepare HTML * * @return string */ protected function _toHtml() { $this->_eventManager->dispatch('adminhtml_catalog_product_attribute_set_main_html_before', ['block' => $this]); return parent::_toHtml(); }
/** * @return string */ protected function _toHtml() { return $this->getPayment()->getMethod() === Directpost::METHOD_CODE ? parent::_toHtml() : ''; }
/** * @return string */ protected function _toHtml() { if ($this->isShow()) { return parent::_toHtml(); } return ''; }
/** * @return string */ protected function _toHtml() { return $this->getPayment()->getMethod() === \Tco\Checkout\Model\Checkout::CODE || $this->getPayment()->getMethod() === \Tco\Checkout\Model\Api::CODE ? parent::_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(); }
/** * 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(); }
/** * Prepare html output * * @return string */ protected function _toHtml() { if (!$this->_storeManager->isSingleStoreMode()) { return parent::_toHtml(); } return ''; }