/**
 * Writes a common 'delete' button.
 *
 * @param   string  $task  The task name of this button.
 * @param   string  $text  The text of this button.
 *
 * @return  ConfirmButton
 *
 * @since   4.0.0
 */
public function delete(string $task, string $text = 'JTOOLBAR_DELETE') : ConfirmButton
{
    return $this->confirmButton('delete', $text)->task($task);
}