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.
14 class ContentTranslationDeleteForm extends ContentEntityDeleteForm {
19 public function getFormId() {
20 return 'content_translation_delete_confirm';
26 public function buildForm(array $form, FormStateInterface $form_state, LanguageInterface $language = NULL) {
28 $form_state->set('langcode', $language->getId());
30 return parent::buildForm($form, $form_state);