public function TransactionTypeCreationForm::submitForm in Transaction 8
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
- src/
Form/ TransactionTypeCreationForm.php, line 115
Class
- TransactionTypeCreationForm
- Provides the transaction type creation form.
Namespace
Drupal\transaction\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('entity.transaction_type.add_form', [
'target_entity_type' => $form_state
->getValue('target_entity_type'),
'transactor' => $form_state
->getValue('transactor'),
]);
}