コード例 #1
0
ファイル: ChildTab.php プロジェクト: pradeep-wagento/magento2
 /**
  * @return string
  */
 public function getContent()
 {
     return $this->tab->toHtml();
 }
コード例 #2
0
ファイル: Tabs.php プロジェクト: whoople/magento2-testing
 /**
  * @param \Magento\Framework\DataObject|TabInterface $tab
  * @return string
  */
 public function getTabContent($tab)
 {
     if ($tab instanceof TabInterface) {
         if ($tab->getSkipGenerateContent()) {
             return '';
         }
         return $tab->toHtml();
     }
     return $tab->getContent();
 }