You are here

public function BadgeTypeDeleteForm::getConfirmText in User Badges 8

Returns a caption for the button that confirms the action.

Return value

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

Overrides EntityConfirmFormBase::getConfirmText

File

src/Form/BadgeTypeDeleteForm.php, line 35
Contains \Drupal\user_badges\Form\BadgeTypeDeleteForm.

Class

BadgeTypeDeleteForm
Builds the form to delete Badge type entities.

Namespace

Drupal\user_badges\Form

Code

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