class ContentTranslationDeleteForm

Same name and namespace in other branches
  1. 11.x core/modules/content_translation/src/Form/ContentTranslationDeleteForm.php \Drupal\content_translation\Form\ContentTranslationDeleteForm
  2. 10 core/modules/content_translation/src/Form/ContentTranslationDeleteForm.php \Drupal\content_translation\Form\ContentTranslationDeleteForm
  3. 8.9.x core/modules/content_translation/src/Form/ContentTranslationDeleteForm.php \Drupal\content_translation\Form\ContentTranslationDeleteForm

Delete translation form for content_translation module.

@internal

Hierarchy

Expanded class hierarchy of ContentTranslationDeleteForm

File

core/modules/content_translation/src/Form/ContentTranslationDeleteForm.php, line 14

Namespace

Drupal\content_translation\Form
View source
class ContentTranslationDeleteForm extends ContentEntityDeleteForm {
  
  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'content_translation_delete_confirm';
  }
  
  /**
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state, LanguageInterface $language = NULL) {
    if ($language) {
      $form_state->set('langcode', $language->getId());
    }
    return parent::buildForm($form, $form_state);
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.