Skip to content

Commit

Permalink
Merge pull request #30 from magento-hackathon/developer-configuration
Browse files Browse the repository at this point in the history
Show message if developer configuration is not available
  • Loading branch information
schmengler committed Feb 7, 2021
2 parents fe027a9 + 38dd361 commit b1053de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Block/Adminhtml/Dashboard/Configuration.php
Expand Up @@ -67,4 +67,13 @@ public function getSaveUrl()
{
return $this->getUrl('adminhtml/system_config/save', ['section' => 'dev']);
}

protected function _toHtml()
{
$html = parent::_toHtml();
if (strpos($html, 'class="section-config"') === false) {
return 'Developer configuration is only available in developer mode';
}
return $html;
}
}

0 comments on commit b1053de

Please sign in to comment.