You are here

public function GroupContentDeleteForm::getConfirmText in Group 2.0.x

Same name and namespace in other branches
  1. 8 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');
}