/** * @inheritdoc * * @return string */ protected function _toHtml() { if ($this->hasKey() && method_exists($this->getOrder(), 'has' . $this->getKey()) && !$this->getOrder()->{'has' . $this->getKey()}()) { return ''; } return parent::_toHtml(); }
/** * @return string */ protected function _toHtml() { if ($this->httpContext->getValue(Context::CONTEXT_AUTH)) { return ''; } return parent::_toHtml(); }
/** * @return string */ protected function _toHtml() { if ($this->httpContext->getValue(\Magento\Customer\Helper\Data::CONTEXT_AUTH)) { return ''; } return parent::_toHtml(); }
/** * @return null|string */ protected function _toHtml() { if ($this->config->isEnabled()) { return parent::_toHtml(); } return null; }