You are here

public function LicenseTypeBase::buildFieldDefinitions in Commerce License 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 LicenseTypeBase::buildFieldDefinitions()
LicenseWithField::buildFieldDefinitions in tests/modules/commerce_license_test/src/Plugin/Commerce/LicenseType/LicenseWithField.php
Builds the field definitions for entities of this bundle.
Role::buildFieldDefinitions in src/Plugin/Commerce/LicenseType/Role.php
Builds the field definitions for entities of this bundle.
2 methods override LicenseTypeBase::buildFieldDefinitions()
LicenseWithField::buildFieldDefinitions in tests/modules/commerce_license_test/src/Plugin/Commerce/LicenseType/LicenseWithField.php
Builds the field definitions for entities of this bundle.
Role::buildFieldDefinitions in src/Plugin/Commerce/LicenseType/Role.php
Builds the field definitions for entities of this bundle.

File

src/Plugin/Commerce/LicenseType/LicenseTypeBase.php, line 117

Class

LicenseTypeBase
Provides the base license type class.

Namespace

Drupal\commerce_license\Plugin\Commerce\LicenseType

Code

public function buildFieldDefinitions() {
  return [];
}