protected function ContentEntityDeleteForm::getDeletionMessage in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php \Drupal\Core\Entity\ContentEntityDeleteForm::getDeletionMessage()
- 10 core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php \Drupal\Core\Entity\ContentEntityDeleteForm::getDeletionMessage()
1 call to ContentEntityDeleteForm::getDeletionMessage()
- ContentEntityDeleteForm::submitForm in core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
5 methods override ContentEntityDeleteForm::getDeletionMessage()
- DeleteForm::getDeletionMessage in core/
modules/ comment/ src/ Form/ DeleteForm.php - FeedDeleteForm::getDeletionMessage in core/
modules/ aggregator/ src/ Form/ FeedDeleteForm.php - MenuLinkContentDeleteForm::getDeletionMessage in core/
modules/ menu_link_content/ src/ Form/ MenuLinkContentDeleteForm.php - NodeDeleteForm::getDeletionMessage in core/
modules/ node/ src/ Form/ NodeDeleteForm.php - TermDeleteForm::getDeletionMessage in core/
modules/ taxonomy/ src/ Form/ TermDeleteForm.php
File
- core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php, line 93
Class
- ContentEntityDeleteForm
- Provides a generic base class for a content entity deletion form.
Namespace
Drupal\Core\EntityCode
protected function getDeletionMessage() {
/** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
$entity = $this
->getEntity();
if (!$entity
->isDefaultTranslation()) {
return $this
->t('The @entity-type %label @language translation has been deleted.', [
'@entity-type' => $entity
->getEntityType()
->getSingularLabel(),
'%label' => $entity
->label(),
'@language' => $entity
->language()
->getName(),
]);
}
return $this
->traitGetDeletionMessage();
}