public function ProductFeatureAddForm::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 FormInterface::submitForm
File
- uc_product/
src/ Form/ ProductFeatureAddForm.php, line 85
Class
- ProductFeatureAddForm
- Defines the form for adding a product feature to the features tab.
Namespace
Drupal\uc_product\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('uc_product.feature_add', [
'node' => $form['#node']
->id(),
'fid' => $form_state
->getValue('feature'),
]);
}