public \Joomla\CMS\Toolbar\Button\StandardButton
save
(string $task, string $text = 'JTOOLBAR_SAVE')
/**
 * Writes a save button for a given option.
 * Save operation leads to a save and then close action.
 *
 * @param   string  $task  The task name of this button.
 * @param   string  $text  The text of this button.
 *
 * @return  StandardButton
 *
 * @since   4.0.0
 */
public function save(string $task, string $text = 'JTOOLBAR_SAVE') : StandardButton
{
    return $this->standardButton('save', $text)->task($task)->formValidation(true);
}