Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Diagrams.php
Go to the documentation of this file.
1 <?php
7 
13 class Diagrams extends \Magento\Backend\Block\Widget\Tabs
14 {
18  protected $_template = 'Magento_Backend::widget/tabshoriz.phtml';
19 
23  protected function _construct()
24  {
25  parent::_construct();
26  $this->setId('diagram_tab');
27  $this->setDestElementId('diagram_tab_content');
28  }
29 
33  protected function _prepareLayout()
34  {
35  $this->addTab(
36  'orders',
37  [
38  'label' => __('Orders'),
39  'content' => $this->getLayout()->createBlock(
40  \Magento\Backend\Block\Dashboard\Tab\Orders::class
41  )->toHtml(),
42  'active' => true
43  ]
44  );
45 
46  $this->addTab(
47  'amounts',
48  [
49  'label' => __('Amounts'),
50  'content' => $this->getLayout()->createBlock(
51  \Magento\Backend\Block\Dashboard\Tab\Amounts::class
52  )->toHtml()
53  ]
54  );
55  return parent::_prepareLayout();
56  }
57 }
__()
Definition: __.php:13