You are here

public function MenuLinkResetForm::buildForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/menu_ui/src/Form/MenuLinkResetForm.php \Drupal\menu_ui\Form\MenuLinkResetForm::buildForm()
  2. 9 core/modules/menu_ui/src/Form/MenuLinkResetForm.php \Drupal\menu_ui\Form\MenuLinkResetForm::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/menu_ui/src/Form/MenuLinkResetForm.php, line 93

Class

MenuLinkResetForm
Defines a confirmation form for resetting a single modified menu link.

Namespace

Drupal\menu_ui\Form

Code

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