/** * @return string */ protected function _toHtml() { if ($this->_wishlistHelper->isAllow()) { return parent::_toHtml(); } return ''; }
/** * Render block HTML * * @return string */ protected function _toHtml() { if (!$this->_checkoutHelper->canOnepageCheckout() || !$this->_moduleManager->isOutputEnabled('Magento_Checkout')) { return ''; } return parent::_toHtml(); }
/** * Render block HTML * * @return string */ protected function _toHtml() { if ($this->_moduleManager->isOutputEnabled('Magento_Checkout')) { return ''; } return parent::_toHtml(); }
/** * {@inheritdoc} */ protected function _toHtml() { if (!$this->_registration->isAllowed() || $this->httpContext->getValue(Context::CONTEXT_AUTH)) { return ''; } return parent::_toHtml(); }
/** * {@inheritdoc} */ protected function _toHtml() { if (!$this->_customerHelper->isRegistrationAllowed() || $this->httpContext->getValue(\Magento\Customer\Helper\Data::CONTEXT_AUTH)) { return ''; } return parent::_toHtml(); }
/** * @return string */ protected function _toHtml() { if ($this->dataHelper->isActive()) { return parent::_toHtml(); } return ''; }
/** * 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 ''; }