コード例 #1
0
ファイル: Sidebar.php プロジェクト: shabbirvividads/magento2
 /**
  * Prepare before to html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->getItemCount()) {
         return parent::_toHtml();
     }
     return '';
 }
コード例 #2
0
ファイル: Column.php プロジェクト: pradeep-wagento/magento2
 /**
  * Retrieve block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->isEnabled()) {
         if (!$this->getLayout()) {
             return '';
         }
         foreach ($this->getLayout()->getChildBlocks($this->getNameInLayout()) as $child) {
             if ($child) {
                 $child->setItem($this->getItem());
             }
         }
         return parent::_toHtml();
     }
     return '';
 }
コード例 #3
0
ファイル: Options.php プロジェクト: aiesh/magento2
 /**
  * Render block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setOptionList($this->getConfiguredOptions());
     return parent::_toHtml();
 }
コード例 #4
0
 /**
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->currentCustomer->getCustomerId()) {
         return parent::_toHtml();
     } else {
         return '';
     }
 }