Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TabWrapper.php
Go to the documentation of this file.
1 <?php
7 
9 
13 class TabWrapper extends ListText implements TabInterface
14 {
18  protected $canShowTab = true;
19 
23  protected $isHidden = false;
24 
28  protected $isAjaxLoaded = false;
29 
35  public function getTabLabel()
36  {
37  return (string) $this->getData('tab_label');
38  }
39 
45  public function getTabTitle()
46  {
47  return (string) $this->getTabLabel();
48  }
49 
55  public function getTabClass()
56  {
57  return (string) $this->getData('tab_class');
58  }
59 
65  public function getTabUrl()
66  {
67  return (string) $this->getData('tab_url');
68  }
69 
75  public function isAjaxLoaded()
76  {
77  $flag = $this->getData('is_ajax_loaded');
78  return $flag !== null ? (bool) $flag : $this->isAjaxLoaded;
79  }
80 
86  public function canShowTab()
87  {
88  $flag = $this->getData('can_show_tab');
89  return $flag !== null ? (bool) $flag : $this->canShowTab;
90  }
91 
97  public function isHidden()
98  {
99  $flag = $this->getData('is_hidden');
100  return $flag !== null ? (bool) $flag : $this->isHidden;
101  }
102 }
getData($key='', $index=null)
Definition: DataObject.php:119