protected function EntityDeleteFormTrait::logDeletionMessage in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::logDeletionMessage()
- 9 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::logDeletionMessage()
Logs a message about the deleted entity.
2 calls to EntityDeleteFormTrait::logDeletionMessage()
- ContentEntityDeleteForm::logDeletionMessage in core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php - EntityDeleteFormTrait::submitForm in core/
lib/ Drupal/ Core/ Entity/ EntityDeleteFormTrait.php
2 methods override EntityDeleteFormTrait::logDeletionMessage()
- LanguageDeleteForm::logDeletionMessage in core/
modules/ language/ src/ Form/ LanguageDeleteForm.php - Logs a message about the deleted entity.
- MenuDeleteForm::logDeletionMessage in core/
modules/ menu_ui/ src/ Form/ MenuDeleteForm.php - Logs a message about the deleted entity.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDeleteFormTrait.php, line 110
Class
- EntityDeleteFormTrait
- Provides a trait for an entity deletion form.
Namespace
Drupal\Core\EntityCode
protected function logDeletionMessage() {
$entity = $this
->getEntity();
$this
->logger($entity
->getEntityType()
->getProvider())
->notice('The @entity-type %label has been deleted.', [
'@entity-type' => $entity
->getEntityType()
->getSingularLabel(),
'%label' => $entity
->label(),
]);
}