public function EntityTraitInterface::buildFieldDefinitions in Commerce Core 8.2
Builds the field definitions.
THe provided field definitions will be created as configurable fields when the entity trait is installed for an entity type/bundle.
Return value
\Drupal\entity\BundleFieldDefinition[] An array of field definitions, keyed by field name.
1 method overrides EntityTraitInterface::buildFieldDefinitions()
- EntityTraitBase::buildFieldDefinitions in src/
Plugin/ Commerce/ EntityTrait/ EntityTraitBase.php - Builds the field definitions.
File
- src/
Plugin/ Commerce/ EntityTrait/ EntityTraitInterface.php, line 44
Class
- EntityTraitInterface
- Defines the interface for entity traits.
Namespace
Drupal\commerce\Plugin\Commerce\EntityTraitCode
public function buildFieldDefinitions();