Esempio n. 1
0
 /**
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_wishlistHelper->isAllow()) {
         return parent::_toHtml();
     }
     return '';
 }
Esempio n. 2
0
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!$this->_checkoutHelper->canOnepageCheckout() || !$this->_moduleManager->isOutputEnabled('Magento_Checkout')) {
         return '';
     }
     return parent::_toHtml();
 }
Esempio n. 3
0
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_moduleManager->isOutputEnabled('Magento_Checkout')) {
         return '';
     }
     return parent::_toHtml();
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 protected function _toHtml()
 {
     if (!$this->_registration->isAllowed() || $this->httpContext->getValue(Context::CONTEXT_AUTH)) {
         return '';
     }
     return parent::_toHtml();
 }
Esempio n. 5
0
 /**
  * {@inheritdoc}
  */
 protected function _toHtml()
 {
     if (!$this->_customerHelper->isRegistrationAllowed() || $this->httpContext->getValue(\Magento\Customer\Helper\Data::CONTEXT_AUTH)) {
         return '';
     }
     return parent::_toHtml();
 }
Esempio n. 6
0
 /**
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->dataHelper->isActive()) {
         return parent::_toHtml();
     }
     return '';
 }
Esempio n. 7
0
 /**
  * Render block HTML
  * or return empty string if url can't be prepared
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->getHref()) {
         return parent::_toHtml();
     }
     return '';
 }