function EntityDeleteFormTrait::getQuestion
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getQuestion()
- 8.9.x core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getQuestion()
- 11.x core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getQuestion()
3 calls to EntityDeleteFormTrait::getQuestion()
- ContentEntityDeleteForm::getQuestion in core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php - Returns the question to ask the user.
- MediaTypeDeleteConfirmForm::buildForm in core/
modules/ media/ src/ Form/ MediaTypeDeleteConfirmForm.php - Form constructor.
- NodeTypeDeleteConfirm::buildForm in core/
modules/ node/ src/ Form/ NodeTypeDeleteConfirm.php - Form constructor.
4 methods override EntityDeleteFormTrait::getQuestion()
- BlockDeleteForm::getQuestion in core/
modules/ block/ src/ Form/ BlockDeleteForm.php - DateFormatDeleteForm::getQuestion in core/
modules/ system/ src/ Form/ DateFormatDeleteForm.php - ImageStyleDeleteForm::getQuestion in core/
modules/ image/ src/ Form/ ImageStyleDeleteForm.php - VocabularyDeleteForm::getQuestion in core/
modules/ taxonomy/ src/ Form/ VocabularyDeleteForm.php
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDeleteFormTrait.php, line 46
Class
- EntityDeleteFormTrait
- Provides a trait for an entity deletion form.
Namespace
Drupal\Core\EntityCode
public function getQuestion() {
return $this->t('Are you sure you want to delete the @entity-type %label?', [
'@entity-type' => $this->getEntity()
->getEntityType()
->getSingularLabel(),
'%label' => $this->getEntity()
->label() ?? $this->getEntity()
->id(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.