2 namespace TYPO3\CMS\Backend\Template\Components\Buttons;
135 && $this->
getType() === InputButton::class
152 'class' =>
'btn btn-default btn-sm ' . $this->
getClasses(),
155 'form' => trim($this->
getForm())
158 if ($this->showLabelText) {
161 foreach ($this->dataAttributes as $attributeName => $attributeValue) {
162 $attributes[
'data-' . htmlspecialchars($attributeName)] = $attributeValue;
164 $attributesString =
'';
165 foreach ($attributes as $key =>
$value) {
167 $attributesString .=
' ' . htmlspecialchars($key) .
'="' . htmlspecialchars(
$value) .
'"';
170 return '<button' . $attributesString .
'>'
171 . $this->
getIcon()->render() . htmlspecialchars($labelText)