public function MergeForm::submitForm in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/src/Form/MergeForm.php \Drupal\bibcite_entity\Form\MergeForm::submitForm()
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
- modules/
bibcite_entity/ src/ Form/ MergeForm.php, line 81
Class
- MergeForm
- Merge bibliographic entities.
Namespace
Drupal\bibcite_entity\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect("entity.{$this->entity->getEntityTypeId()}.bibcite_merge_form_confirm", [
$this->entity
->getEntityTypeId() => $this->entity
->id(),
"{$this->entity->getEntityTypeId()}_target" => $form_state
->getValue('target'),
]);
}