You are here

public function LanguageDeleteForm::logDeletionMessage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Form/LanguageDeleteForm.php \Drupal\language\Form\LanguageDeleteForm::logDeletionMessage()

Logs a message about the deleted entity.

Overrides EntityDeleteFormTrait::logDeletionMessage

File

core/modules/language/src/Form/LanguageDeleteForm.php, line 41
Contains \Drupal\language\Form\LanguageDeleteForm.

Class

LanguageDeleteForm
Defines a confirmation form for deleting a language entity.

Namespace

Drupal\language\Form

Code

public function logDeletionMessage() {
  $this
    ->logger('language')
    ->notice('The %language (%langcode) language has been removed.', array(
    '%language' => $this->entity
      ->label(),
    '%langcode' => $this->entity
      ->id(),
  ));
}