Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ChildTab.php
Go to the documentation of this file.
1 <?php
11 
13 {
17  protected $tab;
18 
23  public function setTab(\Magento\Backend\Block\Widget\Tab\TabInterface $tab)
24  {
25  $this->tab = $tab;
26  return $this;
27  }
28 
32  public function getTitle()
33  {
34  return $this->tab->getTabTitle();
35  }
36 
40  public function getContent()
41  {
42  return $this->tab->toHtml();
43  }
44 
48  public function getTabId()
49  {
50  return $this->tab->getTabId();
51  }
52 
56  public function isTabOpened()
57  {
58  return (bool)$this->tab->getData('opened');
59  }
60 }
setTab(\Magento\Backend\Block\Widget\Tab\TabInterface $tab)
Definition: ChildTab.php:23