protected function EntityDeleteFormTrait::getDeletionMessage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getDeletionMessage()
Gets the message to display to the user after deleting the entity.
Return value
string The translated string of the deletion message.
2 calls to EntityDeleteFormTrait::getDeletionMessage()
- ContentEntityDeleteForm::getDeletionMessage in core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php - EntityDeleteFormTrait::submitForm in core/
lib/ Drupal/ Core/ Entity/ EntityDeleteFormTrait.php
2 methods override EntityDeleteFormTrait::getDeletionMessage()
- LanguageDeleteForm::getDeletionMessage in core/
modules/ language/ src/ Form/ LanguageDeleteForm.php - Gets the message to display to the user after deleting the entity.
- VocabularyDeleteForm::getDeletionMessage in core/
modules/ taxonomy/ src/ Form/ VocabularyDeleteForm.php - Gets the message to display to the user after deleting the entity.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDeleteFormTrait.php, line 71 - Contains \Drupal\Core\Entity\EntityDeleteFormTrait.
Class
- EntityDeleteFormTrait
- Provides a trait for an entity deletion form.
Namespace
Drupal\Core\EntityCode
protected function getDeletionMessage() {
$entity = $this
->getEntity();
return $this
->t('The @entity-type %label has been deleted.', array(
'@entity-type' => $entity
->getEntityType()
->getLowercaseLabel(),
'%label' => $entity
->label(),
));
}