123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Backend\Block\Dashboard;
- /**
- * Adminhtml dashboard diagram tabs
- *
- * @author Magento Core Team <core@magentocommerce.com>
- */
- class Diagrams extends \Magento\Backend\Block\Widget\Tabs
- {
- /**
- * @var string
- */
- protected $_template = 'Magento_Backend::widget/tabshoriz.phtml';
- /**
- * @return void
- */
- protected function _construct()
- {
- parent::_construct();
- $this->setId('diagram_tab');
- $this->setDestElementId('diagram_tab_content');
- }
- /**
- * @return $this
- */
- protected function _prepareLayout()
- {
- $this->addTab(
- 'orders',
- [
- 'label' => __('Orders'),
- 'content' => $this->getLayout()->createBlock(
- \Magento\Backend\Block\Dashboard\Tab\Orders::class
- )->toHtml(),
- 'active' => true
- ]
- );
- $this->addTab(
- 'amounts',
- [
- 'label' => __('Amounts'),
- 'content' => $this->getLayout()->createBlock(
- \Magento\Backend\Block\Dashboard\Tab\Amounts::class
- )->toHtml()
- ]
- );
- return parent::_prepareLayout();
- }
- }
|