/** * 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); }
/** * {@inheritdoc} */ public function getQuestion() { return $this->t('Are you sure you want to delete this %feature?', ['%feature' => uc_product_feature_data($this->featureId, 'title')]); }