You are here

public function GroupContentDeleteForm::getQuestion in Group 8

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

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

1 method overrides GroupContentDeleteForm::getQuestion()
GroupLeaveForm::getQuestion in src/Form/GroupLeaveForm.php
Returns the question to ask the user.

File

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

Class

GroupContentDeleteForm
Provides a form for deleting a group content entity.

Namespace

Drupal\group\Entity\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete %name?', [
    '%name' => $this->entity
      ->label(),
  ]);
}