コード例 #1
0
ファイル: Link.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * @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();
 }
コード例 #2
0
ファイル: Link.php プロジェクト: pradeep-wagento/magento2
 /**
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->httpContext->getValue(Context::CONTEXT_AUTH)) {
         return '';
     }
     return parent::_toHtml();
 }
コード例 #3
0
ファイル: Link.php プロジェクト: aiesh/magento2
 /**
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->httpContext->getValue(\Magento\Customer\Helper\Data::CONTEXT_AUTH)) {
         return '';
     }
     return parent::_toHtml();
 }
コード例 #4
0
ファイル: Current.php プロジェクト: Viktor-V/Facebook-Login
 /**
  * @return null|string
  */
 protected function _toHtml()
 {
     if ($this->config->isEnabled()) {
         return parent::_toHtml();
     }
     return null;
 }