3 namespace Drupal\entity;
5 use Drupal\Core\Field\BaseFieldDefinition;
8 * Provides a field definition class for bundle fields.
10 * Core currently doesn't provide one, the hook_entity_bundle_field_info()
11 * example uses BaseFieldDefinition, which is wrong. Tracked in #2346347.
13 * Note that this class implements both FieldStorageDefinitionInterface and
14 * FieldDefinitionInterface. This is a simplification for DX reasons,
15 * allowing code to return just the bundle definitions instead of having to
16 * return both storage definitions and bundle definitions.
18 class BundleFieldDefinition extends BaseFieldDefinition {
23 public function isBaseField() {