Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Tabs.php
Go to the documentation of this file.
1 <?php
13 
18 class Tabs extends \Magento\Backend\Block\Widget\Tabs
19 {
23  protected function _construct()
24  {
25  parent::_construct();
26  $this->setId('product_attribute_tabs');
27  $this->setDestElementId('edit_form');
28  $this->setTitle(__('Attribute Information'));
29  }
30 
34  protected function _beforeToHtml()
35  {
36  $this->addTab(
37  'main',
38  [
39  'label' => __('Properties'),
40  'title' => __('Properties'),
41  'content' => $this->getChildHtml('main'),
42  'active' => true
43  ]
44  );
45  $this->addTab(
46  'labels',
47  [
48  'label' => __('Manage Labels'),
49  'title' => __('Manage Labels'),
50  'content' => $this->getChildHtml('labels')
51  ]
52  );
53  $this->addTab(
54  'front',
55  [
56  'label' => __('Storefront Properties'),
57  'title' => __('Storefront Properties'),
58  'content' => $this->getChildHtml('front')
59  ]
60  );
61 
62  return parent::_beforeToHtml();
63  }
64 }
__()
Definition: __.php:13