public function ProductClassAttributesAddForm::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/ ProductClassAttributesAddForm.php, line 29
Class
- ProductClassAttributesAddForm
- Defines the product class attribute add form.
Namespace
Drupal\uc_attribute\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$form_state
->setRedirect('entity.node_type.edit_form', [
'node_type' => $this->idValue,
]);
}