You are here

public function NegotiationBrowserDeleteForm::buildForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/src/Form/NegotiationBrowserDeleteForm.php \Drupal\language\Form\NegotiationBrowserDeleteForm::buildForm()
  2. 9 core/modules/language/src/Form/NegotiationBrowserDeleteForm.php \Drupal\language\Form\NegotiationBrowserDeleteForm::buildForm()

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 ConfirmFormBase::buildForm

File

core/modules/language/src/Form/NegotiationBrowserDeleteForm.php, line 56

Class

NegotiationBrowserDeleteForm
Defines a confirmation form for deleting a browser language negotiation mapping.

Namespace

Drupal\language\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $browser_langcode = NULL) {
  $this->browserLangcode = $browser_langcode;
  $form = parent::buildForm($form, $form_state);
  return $form;
}