示例#1
0
 /**
  * @return bool
  */
 public function isTabOpened()
 {
     return (bool) $this->tab->getData('opened');
 }
示例#2
0
 /**
  * @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();
 }