You are here

public function BadgeDeleteForm::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 ContentEntityConfirmFormBase::getConfirmText

File

src/Entity/Form/BadgeDeleteForm.php, line 37
Contains \Drupal\user_badges\Entity\Form\BadgeDeleteForm.

Class

BadgeDeleteForm
Provides a form for deleting Badge entities.

Namespace

Drupal\user_badges\Entity\Form

Code

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