You are here

public function TransactionTypeEditForm::buildForm in Transaction 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides TransactionTypeFormBase::buildForm

File

src/Form/TransactionTypeEditForm.php, line 17

Class

TransactionTypeEditForm
Builds the form to edit a transaction type.

Namespace

Drupal\transaction\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $entity_type = NULL) {
  $form = parent::buildForm($form, $form_state);

  /** @var \Drupal\transaction\TransactionTypeInterface $transaction_type */
  $transaction_type = $this->entity;
  return $form;
}