You are here

public function YamlFormSubmissionsDeleteFormBase::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

1 method overrides YamlFormSubmissionsDeleteFormBase::getConfirmText()
YamlFormSubmissionsPurgeForm::getConfirmText in src/Form/YamlFormSubmissionsPurgeForm.php
Returns a caption for the button that confirms the action.

File

src/Form/YamlFormSubmissionsDeleteFormBase.php, line 79

Class

YamlFormSubmissionsDeleteFormBase
Base form for deleting form submission.

Namespace

Drupal\yamlform\Form

Code

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