You are here

public function ProfileDeleteForm::getConfirmText in Profile 2 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/Form/ProfileDeleteForm.php, line 75
Contains \Drupal\profile\Form\ProfileDeleteForm.

Class

ProfileDeleteForm
Provides a confirmation form for deleting a profile entity.

Namespace

Drupal\profile\Form

Code

public function getConfirmText() {
  return t('Delete');
}