public function ProductFeaturesController::featureAdd in Ubercart 8.4
Displays the add feature form.
1 string reference to 'ProductFeaturesController::featureAdd'
- uc_product.routing.yml in uc_product/
uc_product.routing.yml - uc_product/uc_product.routing.yml
File
- uc_product/
src/ Controller/ ProductFeaturesController.php, line 72
Class
- ProductFeaturesController
- Controller routines for product feature routes.
Namespace
Drupal\uc_product\ControllerCode
public function featureAdd(NodeInterface $node, $fid) {
$func = uc_product_feature_data($fid, 'callback');
$form_state = new FormState();
$form_state
->setBuildInfo([
'args' => [
$node,
NULL,
],
]);
return $this
->formBuilder()
->buildForm($func, $form_state);
}