public function RobotDeleteForm::getQuestion in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/config_entity_example/src/Form/RobotDeleteForm.php \Drupal\config_entity_example\Form\RobotDeleteForm::getQuestion()
Gathers a confirmation question.
The question is used as a title in our confirm form. For delete confirm forms, this typically takes the form of "Are you sure you want to delete...", including the entity label.
Return value
string Translated string.
Overrides ConfirmFormInterface::getQuestion
File
- config_entity_example/
src/ Form/ RobotDeleteForm.php, line 32
Class
- RobotDeleteForm
- Class RobotDeleteForm.
Namespace
Drupal\config_entity_example\FormCode
public function getQuestion() {
return $this
->t('Are you sure you want to delete robot %label?', [
'%label' => $this->entity
->label(),
]);
}