You are here

public function GroupContentDeleteForm::getConfirmText in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Form/GroupContentDeleteForm.php \Drupal\group\Entity\Form\GroupContentDeleteForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

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

Overrides ContentEntityConfirmFormBase::getConfirmText

1 method overrides GroupContentDeleteForm::getConfirmText()
GroupLeaveForm::getConfirmText in src/Form/GroupLeaveForm.php
Returns a caption for the button that confirms the action.

File

src/Entity/Form/GroupContentDeleteForm.php, line 50

Class

GroupContentDeleteForm
Provides a form for deleting a group content entity.

Namespace

Drupal\group\Entity\Form

Code

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