You are here

public function ProductFeaturesController::featureEdit in Ubercart 8.4

Displays the edit feature form.

1 string reference to 'ProductFeaturesController::featureEdit'
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 82

Class

ProductFeaturesController
Controller routines for product feature routes.

Namespace

Drupal\uc_product\Controller

Code

public function featureEdit(NodeInterface $node, $fid, $pfid) {
  $func = uc_product_feature_data($fid, 'callback');
  $form_state = new FormState();
  $form_state
    ->setBuildInfo([
    'args' => [
      $node,
      uc_product_feature_load($pfid),
    ],
  ]);
  return $this
    ->formBuilder()
    ->buildForm($func, $form_state);
}