116 calls to BaseFieldDefinition::create() in Drupal 10
- BaseFieldDefinition::createFromFieldStorageDefinition in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Creates a new field definition based upon a field storage definition.
- BaseFieldDefinition::createFromItemType in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Creates a new list data definition for items of the given data type.
- BaseFieldDefinitionTest::testCustomStorage in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests custom storage.
- BaseFieldDefinitionTest::testDefaultFieldSettings in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests the initialization of default field settings.
- BaseFieldDefinitionTest::testDefaultValueCallback in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests default value callbacks.
- BaseFieldDefinitionTest::testFieldCardinality in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field cardinality.
- BaseFieldDefinitionTest::testFieldDefaultValue in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field default value.
- BaseFieldDefinitionTest::testFieldDescription in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field description methods.
- BaseFieldDefinitionTest::testFieldInitialValue in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field initial value.
- BaseFieldDefinitionTest::testFieldLabel in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field label methods.
- BaseFieldDefinitionTest::testFieldName in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field name methods.
- BaseFieldDefinitionTest::testFieldProvider in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests provider.
- BaseFieldDefinitionTest::testFieldRequired in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests required.
- BaseFieldDefinitionTest::testFieldRevisionable in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field revisionable methods.
- BaseFieldDefinitionTest::testFieldSettings in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field settings methods.
- BaseFieldDefinitionTest::testFieldStorageRequired in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests storage required.
- BaseFieldDefinitionTest::testFieldTranslatable in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field translatable methods.
- BaseFieldDefinitionTest::testFieldType in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests field type methods.
- BaseFieldDefinitionTest::testInvalidDefaultValueCallback in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests invalid default value callbacks.
- BaseFieldDefinitionTest::testNullDefaultValueCallback in core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php - Tests NULL default value callbacks.
- BaseFieldDefinitionTestBase::setUp in core/
tests/ Drupal/ Tests/ Core/ Field/ BaseFieldDefinitionTestBase.php - BaseFieldOverrideTest::testDefaultValueCallback in core/
tests/ Drupal/ KernelTests/ Core/ Field/ Entity/ BaseFieldOverrideTest.php - Tests the default value callback.
- BaseFieldOverrideTest::testGetClass in core/
tests/ Drupal/ KernelTests/ Core/ Field/ Entity/ BaseFieldOverrideTest.php - @covers ::getClass
- BlockContent::baseFieldDefinitions in core/
modules/ block_content/ src/ Entity/ BlockContent.php - Provides base field definitions for an entity type.
- Comment::baseFieldDefinitions in core/
modules/ comment/ src/ Entity/ Comment.php - CommentTestBaseField::baseFieldDefinitions in core/
modules/ comment/ tests/ modules/ comment_base_field_test/ src/ Entity/ CommentTestBaseField.php - Provides base field definitions for an entity type.
- contact_storage_test_entity_base_field_info in core/
modules/ contact/ tests/ modules/ contact_storage_test/ contact_storage_test.module - Implements hook_entity_base_field_info().
- ContentEntityBase::baseFieldDefinitions in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Provides base field definitions for an entity type.
- ContentEntityBaseUnitTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Entity/ ContentEntityBaseUnitTest.php - ContentModerationState::baseFieldDefinitions in core/
modules/ content_moderation/ src/ Entity/ ContentModerationState.php - ContentTranslationHandler::getFieldDefinitions in core/
modules/ content_translation/ src/ ContentTranslationHandler.php - EntityAdapterUnitTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Entity/ TypedData/ EntityAdapterUnitTest.php - EntityDefinitionTestTrait::addBaseField in core/
modules/ system/ tests/ src/ Functional/ Entity/ Traits/ EntityDefinitionTestTrait.php - Adds a new base field to the 'entity_test_update' entity type.
- EntityDefinitionTestTrait::addLongNameBaseField in core/
modules/ system/ tests/ src/ Functional/ Entity/ Traits/ EntityDefinitionTestTrait.php - Adds a long-named base field to the 'entity_test_update' entity type.
- EntityDefinitionTestTrait::addRevisionableBaseField in core/
modules/ system/ tests/ src/ Functional/ Entity/ Traits/ EntityDefinitionTestTrait.php - Adds a new revisionable base field to the 'entity_test_update' entity type.
- EntityDefinitionTestTrait::getUpdatedFieldStorageDefinitions in core/
modules/ system/ tests/ src/ Functional/ Entity/ Traits/ EntityDefinitionTestTrait.php - Returns the required rev / mul field definitions for an entity type.
- EntityDefinitionUpdateTest::testInitialValue in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - Tests adding a base field with initial values.
- EntityDefinitionUpdateTest::testInitialValueFromField in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - Tests adding a base field with initial values inherited from another field.
- EntityDefinitionUpdateTest::testInitialValueFromFieldErrorHandling in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - Tests the error handling when using initial values from another field.
- EntityDefinitionUpdateTest::testSingleActionCalls in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - Tests applying single updates.
- EntityFieldManager::buildBaseFieldDefinitions in core/
lib/ Drupal/ Core/ Entity/ EntityFieldManager.php - Builds base field definitions for an entity type.
- EntityFieldTest::testEntityConstraintValidation in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityFieldTest.php - Tests validation constraints provided by the Entity API.
- EntityKeysTest::testMultipleKeysCache in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityKeysTest.php - Tests the cache when multiple keys reference a single field.
- EntityOwnerTrait::ownerBaseFieldDefinitions in core/
modules/ user/ src/ EntityOwnerTrait.php - Returns an array of base field definitions for entity owners.
- EntityPublishedTrait::publishedBaseFieldDefinitions in core/
lib/ Drupal/ Core/ Entity/ EntityPublishedTrait.php - Returns an array of base field definitions for publishing status.
- EntityReferenceFieldTest::testTargetEntityNoLoad in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityReferenceFieldTest.php - Tests that the target entity is not unnecessarily loaded.
- EntitySchemaSubscriber::getWorkspaceFieldDefinition in core/
modules/ workspaces/ src/ EventSubscriber/ EntitySchemaSubscriber.php - Gets the base field definition for the 'workspace' revision metadata field.
- EntitySchemaSubscriber::onEntityTypeCreate in core/
modules/ system/ tests/ modules/ entity_test_update/ src/ EventSubscriber/ EntitySchemaSubscriber.php - Reacts to the creation of the entity type.
- EntitySchemaSubscriber::onEntityTypeUpdate in core/
modules/ system/ tests/ modules/ entity_test_update/ src/ EventSubscriber/ EntitySchemaSubscriber.php - Reacts to the update of the entity type.
- EntitySerializedField::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntitySerializedField.php - Provides base field definitions for an entity type.
- EntityTest::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTest.php - Provides base field definitions for an entity type.
- EntityTestBaseFieldDisplay::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestBaseFieldDisplay.php - Provides base field definitions for an entity type.
- EntityTestComputedField::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestComputedField.php - Provides base field definitions for an entity type.
- EntityTestConstraints::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestConstraints.php - Provides base field definitions for an entity type.
- EntityTestConstraintViolation::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestConstraintViolation.php - Provides base field definitions for an entity type.
- EntityTestDefaultValue::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestDefaultValue.php - Provides base field definitions for an entity type.
- EntityTestFieldMethods::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestFieldMethods.php - Provides base field definitions for an entity type.
- EntityTestMapField::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMapField.php - Provides base field definitions for an entity type.
- EntityTestMulChanged::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulChanged.php - Provides base field definitions for an entity type.
- EntityTestMulDefaultValue::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulDefaultValue.php - Provides base field definitions for an entity type.
- EntityTestMulRev::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulRev.php - Provides base field definitions for an entity type.
- EntityTestMulRevChanged::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulRevChanged.php - Provides base field definitions for an entity type.
- EntityTestRev::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestRev.php - Provides base field definitions for an entity type.
- EntityTestStringId::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestStringId.php - Provides base field definitions for an entity type.
- EntityTestTest::createEntity in core/
modules/ jsonapi/ tests/ src/ Functional/ EntityTestTest.php - EntityTestUpdate::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test_update/ src/ Entity/ EntityTestUpdate.php - Provides base field definitions for an entity type.
- EntityTestWithBundle::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestWithBundle.php - Provides base field definitions for an entity type.
- EntityTestWithRevisionLog::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test_revlog/ src/ Entity/ EntityTestWithRevisionLog.php - Provides base field definitions for an entity type.
- EntityTypedDataDefinitionTest::testFields in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityTypedDataDefinitionTest.php - Tests deriving metadata about fields.
- EntityTypeInfo::entityBaseFieldInfo in core/
modules/ content_moderation/ src/ EntityTypeInfo.php - Adds base field info to an entity type.
- EntityTypeInfo::entityBaseFieldInfo in core/
modules/ workspaces/ src/ EntityTypeInfo.php - Provides custom base field definitions for a content entity type.
- EntityViewsDataTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Entity/ EntityViewsDataTest.php - EntityViewsDataTest::testDataTableFields in core/
modules/ views/ tests/ src/ Kernel/ Entity/ EntityViewsDataTest.php - Tests fields on the data table.
- EntityViewsDataTest::testRevisionTableFields in core/
modules/ views/ tests/ src/ Kernel/ Entity/ EntityViewsDataTest.php - Tests fields on the revision table.
- entity_reference_test_entity_base_field_info in core/
modules/ system/ tests/ modules/ entity_reference_test/ entity_reference_test.module - Implements hook_entity_base_field_info().
- entity_schema_test_entity_base_field_info in core/
modules/ system/ tests/ modules/ entity_schema_test/ entity_schema_test.module - Implements hook_entity_base_field_info().
- entity_test_entity_base_field_info in core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module - Implements hook_entity_base_field_info().
- entity_test_update_entity_base_field_info in core/
modules/ system/ tests/ modules/ entity_test_update/ entity_test_update.module - Implements hook_entity_base_field_info().
- FieldableEntityDefinitionUpdateTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ FieldableEntityDefinitionUpdateTest.php - FieldItemDataDefinition::createFromDataType in core/
lib/ Drupal/ Core/ Field/ TypedData/ FieldItemDataDefinition.php - Creates a new data definition object.
- FieldItemNormalizerTest::setUp in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ FieldItemNormalizerTest.php - FieldSettingsTest::testBaseFieldSettings in core/
tests/ Drupal/ KernelTests/ Core/ Field/ FieldSettingsTest.php - @covers \Drupal\Core\Field\BaseFieldDefinition::getSettings @covers \Drupal\Core\Field\BaseFieldDefinition::setSettings
- FieldSettingsTest::testBaseFieldSettingsOnClone in core/
tests/ Drupal/ KernelTests/ Core/ Field/ FieldSettingsTest.php - Tests the base field settings on a cloned base field definition object.
- FieldTypePluginManagerTest::testCreateInstance in core/
modules/ field/ tests/ src/ Kernel/ FieldTypePluginManagerTest.php - Tests creation of field item instances.
- FieldTypePluginManagerTest::testCreateInstanceWithConfig in core/
modules/ field/ tests/ src/ Kernel/ FieldTypePluginManagerTest.php - Tests creation of field item instances.
- FieldTypePluginManagerTest::testMainProperty in core/
modules/ field/ tests/ src/ Kernel/ FieldTypePluginManagerTest.php - Tests all field items provide an existing main property.
- File::baseFieldDefinitions in core/
modules/ file/ src/ Entity/ File.php - Provides base field definitions for an entity type.
- FormatterPluginManagerTest::testNotApplicableFallback in core/
modules/ field/ tests/ src/ Kernel/ FormatterPluginManagerTest.php - Tests that getInstance falls back on default if current is not applicable.
- hook_entity_base_field_info in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Provides custom base field definitions for a content entity type.
- link_test_base_field_entity_base_field_info in core/
modules/ link/ tests/ modules/ link_test_base_field/ link_test_base_field.module - Implements hook_entity_base_field_info().
- MapBaseFieldTest::testUninstallMapItemBaseField in core/
tests/ Drupal/ KernelTests/ Core/ Field/ MapBaseFieldTest.php - Tests uninstalling map item base field.
- Media::baseFieldDefinitions in core/
modules/ media/ src/ Entity/ Media.php - Provides base field definitions for an entity type.
- MenuLinkContent::baseFieldDefinitions in core/
modules/ menu_link_content/ src/ Entity/ MenuLinkContent.php - Provides base field definitions for an entity type.
- Message::baseFieldDefinitions in core/
modules/ contact/ src/ Entity/ Message.php - Provides base field definitions for an entity type.
- Node::baseFieldDefinitions in core/
modules/ node/ src/ Entity/ Node.php - NoLanguageEntityTest::baseFieldDefinitions in core/
modules/ language/ tests/ language_test/ src/ Entity/ NoLanguageEntityTest.php - PathAlias::baseFieldDefinitions in core/
modules/ path_alias/ src/ Entity/ PathAlias.php - Provides base field definitions for an entity type.
- path_entity_base_field_info in core/
modules/ path/ path.module - Implements hook_entity_base_field_info().
- RecursiveContextualValidatorTest::testRecursiveViolationPropagation in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ RecursiveContextualValidatorTest.php - Tests recursive propagation of violations.
- rest_test_entity_base_field_info in core/
modules/ rest/ tests/ modules/ rest_test/ rest_test.module - Implements hook_entity_base_field_info().
- RevisionLogEntityTrait::revisionLogBaseFieldDefinitions in core/
lib/ Drupal/ Core/ Entity/ RevisionLogEntityTrait.php - Provides revision-related base field definitions for an entity type.
- Shortcut::baseFieldDefinitions in core/
modules/ shortcut/ src/ Entity/ Shortcut.php - Sql::getFieldSchema in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php - Creates schema from an ID definition.
- SqlContentEntityStorageSchemaTest::testOnFieldStorageDefinitionUpdateShared in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ Sql/ SqlContentEntityStorageSchemaTest.php - Tests updating a shared table field definition.
- StringIdEntityTest::baseFieldDefinitions in core/
modules/ migrate/ tests/ modules/ migrate_entity_test/ src/ Entity/ StringIdEntityTest.php - Provides base field definitions for an entity type.
- Term::baseFieldDefinitions in core/
modules/ taxonomy/ src/ Entity/ Term.php - Provides base field definitions for an entity type.
- TestItemTest::testTestItem in core/
modules/ field/ tests/ src/ Kernel/ TestItemTest.php - Tests using entity fields of the test field type.
- TextItemBaseTest::testTextFieldSampleValue in core/
modules/ text/ tests/ src/ Kernel/ TextItemBaseTest.php - Tests creation of sample values.
- TypedDataTest::testTypedDataValidation in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ TypedDataTest.php - Tests typed data validation.
- User::baseFieldDefinitions in core/
modules/ user/ src/ Entity/ User.php - UserPasswordForm::validateForm in core/
modules/ user/ src/ Form/ UserPasswordForm.php - Form validation handler.
- user_validate_name in core/
modules/ user/ user.module - Verify the syntax of the given name.
- ValidReferenceConstraintValidatorTest::testValidation in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ValidReferenceConstraintValidatorTest.php - Tests the ValidReferenceConstraintValidator.
- views_entity_test_entity_base_field_info in core/
modules/ views/ tests/ modules/ views_entity_test/ views_entity_test.module - Implements hook_entity_bundle_field_info().
- WidgetPluginManagerTest::testNotApplicableFallback in core/
modules/ field/ tests/ src/ Kernel/ WidgetPluginManagerTest.php - Tests that getInstance falls back on default if current is not applicable.
- Workspace::baseFieldDefinitions in core/
modules/ workspaces/ src/ Entity/ Workspace.php - Provides base field definitions for an entity type.