You are here

public function MessageDeleteForm::getConfirmText in Message UI 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/MessageDeleteForm.php, line 35

Class

MessageDeleteForm
Provides a form for deleting a message_ui entity.

Namespace

Drupal\message_ui\Form

Code

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