You are here

protected function NodeDeleteForm::logDeletionMessage in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Form/NodeDeleteForm.php \Drupal\node\Form\NodeDeleteForm::logDeletionMessage()
  2. 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\Form

Code

protected function logDeletionMessage() {

  /** @var \Drupal\node\NodeInterface $entity */
  $entity = $this
    ->getEntity();
  $this
    ->logger('content')
    ->notice('@type: deleted %title.', [
    '@type' => $entity
      ->getType(),
    '%title' => $entity
      ->label(),
  ]);
}