You are here

public function TransactorBase::buildConfigurationForm in Transaction 8

Provides a form for this transactor plugin settings.

The form provided by this method is displayed by the TransactionTypeForm when creating or editing the transaction type.

Parameters

array $form: The transaction type form array.

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

Return value

array The form array.

Overrides PluginFormInterface::buildConfigurationForm

See also

\Drupal\transaction\Form\TransactionTypeFormBase

File

src/TransactorBase.php, line 140

Class

TransactorBase
Provides a base class for transactor plugins.

Namespace

Drupal\transaction

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {

  // Add reference to fields in the transaction entity.
  $form = $this
    ->buildTransactionFieldsForm($form, $form_state);

  // Add reference to fields in the target entity.
  $form = $this
    ->buildTargetFieldsForm($form, $form_state);

  // Add transaction options.
  $form = $this
    ->buildTransactionOptionsForm($form, $form_state);
  return $form;
}