You are here

public function ProductAttributesAddForm::submitForm in Ubercart 8.4

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides ObjectAttributesAddFormBase::submitForm

File

uc_attribute/src/Form/ProductAttributesAddForm.php, line 29

Class

ProductAttributesAddForm
Defines the product attribute add form.

Namespace

Drupal\uc_attribute\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $form_state
    ->setRedirect('uc_attribute.product_attributes', [
    'node' => $this->idValue,
  ]);
}