3 namespace Drupal\content_translation\Form;
5 use Drupal\Core\Entity\ContentEntityDeleteForm;
6 use Drupal\Core\Form\FormStateInterface;
7 use Drupal\Core\Language\LanguageInterface;
10 * Delete translation form for content_translation module.
12 class ContentTranslationDeleteForm extends ContentEntityDeleteForm {
17 public function getFormId() {
18 return 'content_translation_delete_confirm';
24 public function buildForm(array $form, FormStateInterface $form_state, LanguageInterface $language = NULL) {
26 $form_state->set('langcode', $language->getId());
28 return parent::buildForm($form, $form_state);