You are here

public function PaymentMethodTypeBase::buildFieldDefinitions in Commerce Core 8.2

Builds the field definitions for entities of this bundle.

Important: Field names must be unique across all bundles. It is recommended to prefix them with the bundle name (plugin ID).

Return value

\Drupal\entity\BundleFieldDefinition[] An array of bundle field definitions, keyed by field name.

Overrides BundlePluginInterface::buildFieldDefinitions

2 calls to PaymentMethodTypeBase::buildFieldDefinitions()
CreditCard::buildFieldDefinitions in modules/payment/src/Plugin/Commerce/PaymentMethodType/CreditCard.php
Builds the field definitions for entities of this bundle.
PayPal::buildFieldDefinitions in modules/payment/src/Plugin/Commerce/PaymentMethodType/PayPal.php
Builds the field definitions for entities of this bundle.
2 methods override PaymentMethodTypeBase::buildFieldDefinitions()
CreditCard::buildFieldDefinitions in modules/payment/src/Plugin/Commerce/PaymentMethodType/CreditCard.php
Builds the field definitions for entities of this bundle.
PayPal::buildFieldDefinitions in modules/payment/src/Plugin/Commerce/PaymentMethodType/PayPal.php
Builds the field definitions for entities of this bundle.

File

modules/payment/src/Plugin/Commerce/PaymentMethodType/PaymentMethodTypeBase.php, line 29

Class

PaymentMethodTypeBase
Provides the base payment method type class.

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentMethodType

Code

public function buildFieldDefinitions() {
  return [];
}