Ejemplo n.º 1
0
 /**
  * @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();
 }
Ejemplo n.º 2
0
 /**
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->httpContext->getValue(Context::CONTEXT_AUTH)) {
         return '';
     }
     return parent::_toHtml();
 }
Ejemplo n.º 3
0
 /**
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->httpContext->getValue(\Magento\Customer\Helper\Data::CONTEXT_AUTH)) {
         return '';
     }
     return parent::_toHtml();
 }
Ejemplo n.º 4
0
 /**
  * @return null|string
  */
 protected function _toHtml()
 {
     if ($this->config->isEnabled()) {
         return parent::_toHtml();
     }
     return null;
 }