2 namespace TYPO3\CMS\Backend\Template\Components\Buttons;
77 && $this->
getType() === LinkButton::class
94 'class' =>
'btn btn-default btn-sm ' . $this->
getClasses(),
98 if ($this->showLabelText) {
101 foreach ($this->dataAttributes as $attributeName => $attributeValue) {
102 $attributes[
'data-' . htmlspecialchars($attributeName)] = $attributeValue;
104 if ($this->onClick !==
'') {
107 $attributesString =
'';
108 foreach ($attributes as $key => $value) {
109 $attributesString .=
' ' . htmlspecialchars($key) .
'="' . htmlspecialchars($value) .
'"';
112 return '<a ' . $attributesString .
'>'
113 . $this->
getIcon()->render() . htmlspecialchars($labelText)