function NodeDeleteForm::logDeletionMessage
Same name in other branches
- 9 core/modules/node/src/Form/NodeDeleteForm.php \Drupal\node\Form\NodeDeleteForm::logDeletionMessage()
- 10 core/modules/node/src/Form/NodeDeleteForm.php \Drupal\node\Form\NodeDeleteForm::logDeletionMessage()
- 11.x 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(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.