public function GroupContentDeleteForm::getQuestion in Group 2.0.x
Same name and namespace in other branches
- 8 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\FormCode
public function getQuestion() {
return $this
->t('Are you sure you want to delete %name?', [
'%name' => $this->entity
->label(),
]);
}