protected function NodeDeleteForm::logDeletionMessage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Form/NodeDeleteForm.php \Drupal\node\Form\NodeDeleteForm::logDeletionMessage()
- 9 core/modules/node/src/Form/NodeDeleteForm.php \Drupal\node\Form\NodeDeleteForm::logDeletionMessage()
Overrides ContentEntityDeleteForm::logDeletionMessage
File
- core/
modules/ node/ src/ Form/ NodeDeleteForm.php, line 41
Class
- NodeDeleteForm
- Provides a form for deleting a node.
Namespace
Drupal\node\FormCode
protected function logDeletionMessage() {
/** @var \Drupal\node\NodeInterface $entity */
$entity = $this
->getEntity();
$this
->logger('content')
->notice('@type: deleted %title.', [
'@type' => $entity
->getType(),
'%title' => $entity
->label(),
]);
}