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
7 
8 class Tabs extends \Magento\Backend\Block\Widget\Tabs
9 {
13  protected function _construct()
14  {
15  parent::_construct();
16  $this->setId('design_tabs');
17  $this->setDestElementId('design-edit-form');
18  $this->setTitle(__('Design Change'));
19  }
20 
24  protected function _prepareLayout()
25  {
26  $this->addTab(
27  'general',
28  [
29  'label' => __('General'),
30  'content' => $this->getLayout()->createBlock(
31  \Magento\Backend\Block\System\Design\Edit\Tab\General::class
32  )->toHtml()
33  ]
34  );
35 
36  return parent::_prepareLayout();
37  }
38 }
__()
Definition: __.php:13