You are here

public function YamlFormUiElementDeleteForm::getConfirmText in YAML Form 8

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides ConfirmFormBase::getConfirmText

File

modules/yamlform_ui/src/Form/YamlFormUiElementDeleteForm.php, line 158

Class

YamlFormUiElementDeleteForm
Form for deleting a form element.

Namespace

Drupal\yamlform_ui\Form

Code

public function getConfirmText() {
  return $this
    ->t('Delete');
}