20 const SPLIT_BUTTON = \Magento\Ui\Component\Control\SplitButton::class;
29 protected function createButton($blockName, $blockClassName =
null)
31 if (
null === $blockClassName) {
32 $blockClassName = static::DEFAULT_CONTROL;
35 return $this->
getLayout()->createBlock($blockClassName, $blockName);
46 $item = $this->getButtonItem();
49 $contextPrefixName = $this->
getData(
'context') ? ($this->
getData(
'context')->getNameInLayout() .
'-') :
'';
51 $contextPrefixName .
$item->getId() .
'-button',
52 isset(
$data[
'class_name']) ?
$data[
'class_name'] : null
getData($key='', $index=null)
createButton($blockName, $blockClassName=null)