You are here

public function FieldValidationRuleDeleteForm::getConfirmText in Field Validation 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

src/Form/FieldValidationRuleDeleteForm.php, line 38

Class

FieldValidationRuleDeleteForm
Form for deleting a fieldValidationRule.

Namespace

Drupal\field_validation\Form

Code

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