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