You are here

protected function SupportTicketDeleteForm::logDeletionMessage in Support Ticketing System 8

Overrides ContentEntityDeleteForm::logDeletionMessage

File

modules/support_ticket/src/Form/SupportTicketDeleteForm.php, line 44
Contains \Drupal\support_ticket\Form\SupportTicketDeleteForm.

Class

SupportTicketDeleteForm
Provides a form for deleting a support ticket.

Namespace

Drupal\support_ticket\Form

Code

protected function logDeletionMessage() {

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