public function TransactionOperationForm::delete in Transaction 8
File
- src/
Form/ TransactionOperationForm.php, line 160
Class
- TransactionOperationForm
- Builds the form to add or edit a transaction operation.
Namespace
Drupal\transaction\FormCode
public function delete(array $form, FormStateInterface $form_state) {
/** @var \Drupal\transaction\TransactionOperationInterface $transaction_operation */
$transaction_operation = $this->entity;
$form_state
->setRedirect('entity.transaction_operation.collection', [
'transaction_type' => $transaction_operation
->getTransactionTypeId(),
]);
}