25 $this->
setTemplate(
'Magento_Backend::widget/button.phtml');
36 if (in_array($this->
getData(
'type'), [
'reset',
'submit'])) {
59 $disabled = $this->getDisabled() ?
'disabled' :
'';
60 $title = $this->getTitle();
62 $title = $this->getLabel();
65 $classes[] =
'action-default';
66 $classes[] =
'scalable';
67 if ($this->getClass()) {
68 $classes[] = $this->getClass();
71 $classes[] = $disabled;
88 'id' => $this->
getId(),
89 'name' => $this->getElementName(),
92 'class' => join(
' ', $classes),
94 'style' => $this->getStyle(),
95 'value' => $this->getValue(),
96 'disabled' => $disabled,
98 if ($this->getDataAttribute()) {
99 foreach ($this->getDataAttribute() as $key =>
$attr) {
115 foreach (
$attributes as $attributeKey => $attributeValue) {
116 if ($attributeValue ===
null || $attributeValue ==
'') {
119 $html .= $attributeKey .
'="' . $this->
escapeHtmlAttr($attributeValue,
false) .
'" ';
getData($key='', $index=null)
escapeHtmlAttr($string, $escapeSingleQuote=true)