You are here

public function ProductFeatureDeleteForm::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_product/src/Form/ProductFeatureDeleteForm.php, line 74

Class

ProductFeatureDeleteForm
Defines the attribute option delete form.

Namespace

Drupal\uc_product\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, NodeInterface $node = NULL, $fid = NULL, $pfid = NULL) {
  $this->node = $node;
  $this->featureId = $fid;
  $this->feature = uc_product_feature_load($pfid);
  return parent::buildForm($form, $form_state);
}