Skip to content

Commit

Permalink
Fix setParams() syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
schmengler committed Mar 11, 2018
1 parent 187abae commit 599ea23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Block/Adminhtml/Dashboard/Configuration.php
Expand Up @@ -2,6 +2,9 @@

namespace Firegento\DevDashboard\Block\Adminhtml\Dashboard;

/**
* @method Configuration setTitle(string $title)
*/
class Configuration extends \Magento\Config\Block\System\Config\Edit
{

Expand Down Expand Up @@ -46,15 +49,15 @@ public function _prepareLayout()
public function _prepareRequestParams()
{
$this->originalParams = $this->getRequest()->getParam('section');
$this->getRequest()->setParams(['section', 'dev']);
$this->getRequest()->setParams(['section' => 'dev']);
}

/**
*
*/
public function _resetRequestParams()
{
$this->getRequest()->setParams(['section', $this->originalParams]);
$this->getRequest()->setParams(['section' => $this->originalParams]);
}

/**
Expand Down

0 comments on commit 599ea23

Please sign in to comment.