35 return 'Magento_Ui::control/button/default.phtml';
45 if (in_array($this->
getData(
'type'), [
'reset',
'submit'])) {
59 $disabled = $this->getDisabled() ?
'disabled' :
'';
60 $title = $this->getTitle();
62 $title = $this->getLabel();
64 $classes = [
'action-',
'scalable'];
66 $classes[] = $this->getClass();
69 $classes[] = $disabled;
82 if ($this->
hasData(
'on_click')) {
83 return $this->
getData(
'on_click');
87 return sprintf(
"location.href = '%s';",
$url);
105 'id' => $this->getId(),
106 'name' => $this->getElementName(),
109 'class' => implode(
' ', $classes),
111 'style' => $this->getStyle(),
112 'value' => $this->getValue(),
113 'disabled' => $disabled,
115 if ($this->getDataAttribute()) {
116 foreach ($this->getDataAttribute() as $key =>
$attr) {
133 foreach (
$attributes as $attributeKey => $attributeValue) {
134 if ($attributeValue ===
null || $attributeValue ==
'') {
137 $html .= $attributeKey .
'="' . $this->
escapeHtmlAttr($attributeValue,
false) .
'" ';
getData($key='', $index=null)
getUrl($route='', $params=[])
escapeHtmlAttr($string, $escapeSingleQuote=true)