17 class Container extends \Magento\Backend\Block\Widget\Container
46 protected $_template =
'Magento_Backend::widget/grid/container.phtml';
56 if ($this->
hasData(self::PARAM_BLOCK_GROUP)) {
57 $this->_blockGroup = $this->
_getData(self::PARAM_BLOCK_GROUP);
59 if ($this->
hasData(self::PARAM_BUTTON_NEW)) {
60 $this->_addButtonLabel = $this->
_getData(self::PARAM_BUTTON_NEW);
63 if ($this->_addButtonLabel ===
null) {
64 $this->_addButtonLabel =
__(
'Add New');
68 if ($this->
hasData(self::PARAM_BUTTON_BACK)) {
69 $this->_backButtonLabel = $this->
_getData(self::PARAM_BUTTON_BACK);
72 if ($this->_backButtonLabel ===
null) {
73 $this->_backButtonLabel =
__(
'Back');
92 ) .
'\\Block\\' . str_replace(
95 ucwords(str_replace(
'_',
' ', $this->_controller))
97 $this->_controller .
'.grid' 103 return parent::_prepareLayout();
111 return $this->
getUrl(
'*/*/new');
149 'onclick' =>
'setLocation(\'' . $this->
getCreateUrl() .
'\')
', 150 'class' => 'add primary
' 158 protected function _addBackButton() 163 'label
' => $this->getBackButtonLabel(), 164 'onclick
' => 'setLocation(\
'' . $this->getBackUrl() .
'\')
', 173 public function getHeaderCssClass() 175 return 'icon-head
' . parent::getHeaderCssClass(); 181 public function getHeaderWidth()
getUrl($route='', $params=[])
getChildHtml($alias='', $useCache=true)