You are here

public function PrivateMessageThreadDeleteForm::getConfirmText in Private Message 8.2

Same name and namespace in other branches
  1. 8 src/Form/PrivateMessageThreadDeleteForm.php \Drupal\private_message\Form\PrivateMessageThreadDeleteForm::getConfirmText()

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/PrivateMessageThreadDeleteForm.php, line 40

Class

PrivateMessageThreadDeleteForm
Form definition for the private message delete form.

Namespace

Drupal\private_message\Form

Code

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