' . $element['#value'] . '' : $element['#value']; // Add icons before or after the value. // @see https://www.drupal.org/node/2219965 if (!empty($element['#icon'])) { if ($element['#icon_position'] === 'before') { $text = $element['#icon'] . ' ' . $text; } elseif ($element['#icon_position'] === 'after') { $text .= ' ' . $element['#icon']; } } // This line break adds inherent margin between multiple buttons. return '' . $text . "\n"; }