27 protected function createButton($blockName, $blockClassName =
null)
29 if (
null === $blockClassName) {
30 $blockClassName = \Magento\Backend\Block\Widget\Button::class;
32 return $this->
getLayout()->createBlock($blockClassName, $blockName);
40 $item = $this->getButtonItem();
41 $context = $this->getContext();
43 if (
$item && $context && $context->canRender(
$item)) {
45 $blockClassName = isset(
$data[
'class_name']) ?
$data[
'class_name'] :
null;
46 $buttonName = $this->getContext()->getNameInLayout() .
'-' .
$item->getId() .
'-button';
51 return parent::_toHtml();