3 namespace Drupal\language\Form;
5 use Drupal\Core\Entity\EntityDeleteForm;
8 * Defines a confirmation form for deleting a language entity.
10 class LanguageDeleteForm extends EntityDeleteForm {
15 public function getDescription() {
16 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.');
22 public function getFormId() {
23 return 'language_delete_form';
29 protected function getDeletionMessage() {
30 return $this->t('The %language (%langcode) language has been removed.', ['%language' => $this->entity->label(), '%langcode' => $this->entity->id()]);
36 public function logDeletionMessage() {
37 $this->logger('language')->notice('The %language (%langcode) language has been removed.', ['%language' => $this->entity->label(), '%langcode' => $this->entity->id()]);