23 protected $_template =
'Magento_Backend::dashboard/index.phtml';
36 $isChartEnabled = $this->_scopeConfig->getValue(
37 self::XML_PATH_ENABLE_CHARTS,
38 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
40 if ($isChartEnabled) {
44 \
Magento\Backend\Block\Template::class
46 'dashboard/graph/disabled.phtml' 49 'adminhtml/system_config/edit',
50 [
'section' =>
'admin',
'_fragment' =>
'admin_dashboard-link']
58 parent::_prepareLayout();
69 return $this->
getUrl(
'adminhtml/*/*', [
'_current' =>
true,
'period' =>
null]);
getData($key='', $index=null)
addChild($alias, $block, $data=[])
getUrl($route='', $params=[])
const XML_PATH_ENABLE_CHARTS