You are here

public function AttributeDeleteForm::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/AttributeDeleteForm.php, line 60

Class

AttributeDeleteForm
Defines the attribute delete form.

Namespace

Drupal\uc_attribute\Form

Code

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