You are here

public function EntityExtraFieldInfo::invoke in Payment 8.2

Same name in this branch
  1. 8.2 modules/payment_reference/src/Hook/EntityExtraFieldInfo.php \Drupal\payment_reference\Hook\EntityExtraFieldInfo::invoke()
  2. 8.2 modules/payment_form/src/Hook/EntityExtraFieldInfo.php \Drupal\payment_form\Hook\EntityExtraFieldInfo::invoke()

Invokes the implementation.

File

modules/payment_form/src/Hook/EntityExtraFieldInfo.php, line 29

Class

EntityExtraFieldInfo
Implements hook_entity_extra_field_info().

Namespace

Drupal\payment_form\Hook

Code

public function invoke() {
  $fields['payment']['payment_form']['form'] = [
    'payment_method' => [
      'label' => $this
        ->t('Payment method selection and configuration'),
      'weight' => 1,
    ],
  ];
  return $fields;
}