public ContentTranslationDeleteForm::buildForm(array $form, FormStateInterface $form_state, LanguageInterface $language = NULL)
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ContentEntityDeleteForm::buildForm
File
- core/modules/content_translation/src/Form/ContentTranslationDeleteForm.php, line 24
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); }
Please login to continue.