protected function EntityDeleteFormTrait::logDeletionMessage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 115 - Contains \Drupal\Core\Entity\EntityDeleteFormTrait.
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.', array(
'@entity-type' => $entity
->getEntityType()
->getLowercaseLabel(),
'%label' => $entity
->label(),
));
}