Skip to content

Commit

Permalink
Update Container.php
Browse files Browse the repository at this point in the history
get block group from data array
  • Loading branch information
Maddesto committed May 19, 2016
1 parent 26064de commit 1d663b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/code/Magento/Backend/Block/Widget/Form/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class Container extends \Magento\Backend\Block\Widget\Container
* @var string
*/
protected $_blockGroup = 'Magento_Backend';

/**
* @var string
* /
const PARAM_BLOCK_GROUP = 'block_group';
/**
* @var string
Expand All @@ -49,6 +54,10 @@ class Container extends \Magento\Backend\Block\Widget\Container
protected function _construct()
{
parent::_construct();

if ($this->hasData(self::PARAM_BLOCK_GROUP)) {
$this->_blockGroup = $this->_getData(self::PARAM_BLOCK_GROUP);
}

$this->addButton(
'back',
Expand Down

0 comments on commit 1d663b2

Please sign in to comment.