LanguageDeleteForm.php in Drupal 10
File
core/modules/language/src/Form/LanguageDeleteForm.php
View source
<?php
namespace Drupal\language\Form;
use Drupal\Core\Entity\EntityDeleteForm;
class LanguageDeleteForm extends EntityDeleteForm {
public function getDescription() {
return $this
->t('Deleting a language will remove all interface translations associated with it, and content in this language will be set to be language neutral. This action cannot be undone.');
}
public function getFormId() {
return 'language_delete_form';
}
protected function getDeletionMessage() {
return $this
->t('The %language (%langcode) language has been removed.', [
'%language' => $this->entity
->label(),
'%langcode' => $this->entity
->id(),
]);
}
public function logDeletionMessage() {
$this
->logger('language')
->notice('The %language (%langcode) language has been removed.', [
'%language' => $this->entity
->label(),
'%langcode' => $this->entity
->id(),
]);
}
}