3 namespace Drupal\language\Form;
5 use Drupal\Core\Entity\EntityDeleteForm;
8 * Defines a confirmation form for deleting a language entity.
12 class LanguageDeleteForm extends EntityDeleteForm {
17 public function getDescription() {
18 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.');
24 public function getFormId() {
25 return 'language_delete_form';
31 protected function getDeletionMessage() {
32 return $this->t('The %language (%langcode) language has been removed.', ['%language' => $this->entity->label(), '%langcode' => $this->entity->id()]);
38 public function logDeletionMessage() {
39 $this->logger('language')->notice('The %language (%langcode) language has been removed.', ['%language' => $this->entity->label(), '%langcode' => $this->entity->id()]);