Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-backend
Block
Dashboard
Diagrams.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Block\Dashboard
;
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
}
Magento\Framework\View\Element\BlockInterface\toHtml
toHtml()
Magento\Backend\Block\Dashboard\Diagrams\_prepareLayout
_prepareLayout()
Definition:
Diagrams.php:33
Magento\Backend\Block\Dashboard\Diagrams\_construct
_construct()
Definition:
Diagrams.php:23
Magento\Backend\Block\Dashboard
Definition:
GraphTest.php:6
__
__()
Definition:
__.php:13
Magento\Backend\Block\Dashboard\Diagrams
Definition:
Diagrams.php:13
Magento\Backend\Block\Widget\Tabs\addTab
addTab($tabId, $tab)
Definition:
Tabs.php:115
Magento\Backend\Block\Dashboard\Diagrams\$_template
$_template
Definition:
Diagrams.php:18
Magento\Backend\Block\Widget\Tabs\setDestElementId
setDestElementId($elementId)
Definition:
Tabs.php:86
Magento\Framework\View\Element\AbstractBlock\getLayout
getLayout()
Definition:
AbstractBlock.php:295
Magento
Magento\Backend\Block\Dashboard
Definition:
Dashboard.php:13