You are here

public function OptionDeleteForm::buildForm in Ubercart 8.4

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

uc_attribute/src/Form/OptionDeleteForm.php, line 50

Class

OptionDeleteForm
Defines the attribute option delete form.

Namespace

Drupal\uc_attribute\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $aid = NULL, $oid = NULL) {
  $this->option = uc_attribute_option_load($oid);
  return parent::buildForm($form, $form_state);
}