protected function _createButton($type = null, $text = null, $attributeArray = [])
{
if (is_array($attributeArray)) {
$attributeArray = array_merge($this->_attributeArray['button'][$type], $attributeArray);
} else {
$attributeArray = $this->_attributeArray['button'][$type];
}
$buttonElement = new Element();
$buttonElement->init('button', $attributeArray)->text($text ? $text : $this->_language->get($this->_languageArray['button'][$type]));
$this->append($buttonElement);
return $this;
}