public function ProductBundleForm::buildForm in Commerce Product Bundle 8
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 EntityForm::buildForm
File
- src/
Form/ ProductBundleForm.php, line 18
Class
- ProductBundleForm
- Form controller for product bundle edit forms.
Namespace
Drupal\commerce_product_bundle\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
/** @var \Drupal\commerce_product_bundle\Entity\ProductBundle $entity */
$form = parent::buildForm($form, $form_state);
return $form;
}