NodeDeleteForm::logDeletionMessage

protected NodeDeleteForm::logDeletionMessage()

Overrides ContentEntityDeleteForm::logDeletionMessage

File

core/modules/node/src/Form/NodeDeleteForm.php, line 39

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()]);
}
doc_Drupal
2016-10-29 09:30:42
Comments
Leave a Comment

Please login to continue.