function ContentTranslationDeleteForm::buildForm

Same name in other branches
  1. 9 core/modules/content_translation/src/Form/ContentTranslationDeleteForm.php \Drupal\content_translation\Form\ContentTranslationDeleteForm::buildForm()
  2. 10 core/modules/content_translation/src/Form/ContentTranslationDeleteForm.php \Drupal\content_translation\Form\ContentTranslationDeleteForm::buildForm()
  3. 11.x core/modules/content_translation/src/Form/ContentTranslationDeleteForm.php \Drupal\content_translation\Form\ContentTranslationDeleteForm::buildForm()

Overrides ContentEntityDeleteForm::buildForm

File

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

Class

ContentTranslationDeleteForm
Delete translation form for content_translation module.

Namespace

Drupal\content_translation\Form

Code

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.