/**
  * {@inheritdoc}
  */
 public function buildForm(array $form, FormStateInterface $form_state, NodeInterface $node = NULL, $fid = NULL, $pfid = NULL)
 {
     $this->node = $node;
     $this->featureId = $fid;
     $this->feature = uc_product_feature_load($pfid);
     return parent::buildForm($form, $form_state);
 }
 /**
  * Displays the edit feature form.
  */
 public function featureEdit(NodeInterface $node, $fid, $pfid)
 {
     $func = uc_product_feature_data($fid, 'callback');
     $form_state = new FormState();
     $form_state->setBuildInfo(array('args' => array($node, uc_product_feature_load($pfid))));
     return $this->formBuilder()->buildForm($func, $form_state);
 }