69 calls to FieldConfig::loadByName()
- AddToAllBundlesConfigActionTest::testIgnoreExistingFields in core/
modules/ field/ tests/ src/ Kernel/ AddToAllBundlesConfigActionTest.php - Tests that the action will ignore existing fields by default.
- block_content_add_body_field in core/
modules/ block_content/ block_content.module - Adds the default body field to a block type.
- BulkDeleteTest::testDeleteField in core/
modules/ field/ tests/ src/ Kernel/ BulkDeleteTest.php - Tests deleting fields.
- BulkDeleteTest::testPurgeField in core/
modules/ field/ tests/ src/ Kernel/ BulkDeleteTest.php - Tests purging fields.
- BulkDeleteTest::testPurgeFieldStorage in core/
modules/ field/ tests/ src/ Kernel/ BulkDeleteTest.php - Tests purging field storages.
- BulkDeleteTest::testPurgeWithDeletedAndActiveField in core/
modules/ field/ tests/ src/ Kernel/ BulkDeleteTest.php - Tests that recreating a field with the name as a deleted field works.
- CommentCacheTagsTest::createEntity in core/
modules/ comment/ tests/ src/ Functional/ CommentCacheTagsTest.php - Creates the entity to be tested.
- CommentFieldAccessTest::testAccessToAdministrativeFields in core/
modules/ comment/ tests/ src/ Kernel/ CommentFieldAccessTest.php - Tests permissions on comment fields.
- CommentFieldsTest::testCommentDefaultFields in core/
modules/ comment/ tests/ src/ Functional/ CommentFieldsTest.php - Tests that the default 'comment_body' field is correctly added.
- CommentInterfaceTest::testAutoFilledSubject in core/
modules/ comment/ tests/ src/ Functional/ CommentInterfaceTest.php - Tests that the subject is automatically filled if disabled or left blank.
- CommentManager::addBodyField in core/
modules/ comment/ src/ CommentManager.php - CommentNonNodeTest::postComment in core/
modules/ comment/ tests/ src/ Functional/ CommentNonNodeTest.php - Posts a comment.
- CommentTestBase::postComment in core/
modules/ comment/ tests/ src/ Functional/ CommentTestBase.php - Posts a comment.
- CommentTestBase::setCommentSettings in core/
modules/ comment/ tests/ src/ Functional/ CommentTestBase.php - Sets a comment settings variable for the article content type.
- CommentTypeTest::testCommentTypeEditing in core/
modules/ comment/ tests/ src/ Functional/ CommentTypeTest.php - Tests editing a comment type using the UI.
- ContentEntityFormFieldValidationFilteringTest::testFieldWidgetsWithLimitedValidationErrors in core/
tests/ Drupal/ FunctionalTests/ Entity/ ContentEntityFormFieldValidationFilteringTest.php - Tests field widgets with #limit_validation_errors.
- ContentTranslationSettingsTest::testSettingsUI in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationSettingsTest.php - Tests that the settings UI works as expected.
- EditorLoadingTest::setUp in core/
modules/ editor/ tests/ src/ Functional/ EditorLoadingTest.php - EntityLanguageTestBase::toggleFieldTranslatability in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityLanguageTestBase.php - Toggles field storage translatability.
- EntityReferenceAutoCreateTest::testMultipleTargetBundles in core/
modules/ field/ tests/ src/ Functional/ EntityReference/ EntityReferenceAutoCreateTest.php - Tests multiple target bundles.
- EntityReferenceFieldCreationTrait::createEntityReferenceField in core/
modules/ field/ tests/ src/ Traits/ EntityReferenceFieldCreationTrait.php - Creates a field of an entity reference field storage on the specified bundle.
- EntityReferenceFieldTest::testReferencedEntitiesStringId in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityReferenceFieldTest.php - Tests referencing entities with string IDs.
- EntityReferenceIntegrationTest::testSupportedEntityTypesAndWidgets in core/
modules/ field/ tests/ src/ Functional/ EntityReference/ EntityReferenceIntegrationTest.php - Tests the entity reference field with all its supported field widgets.
- EntityReferenceSelectionReferenceableTest::setUp in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelectionReferenceableTest.php - EntityReferenceSettingsTest::testConfigTargetBundleDeletion in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ EntityReferenceSettingsTest.php - Tests that config bundle deletions are mirrored in field config settings.
- EntityReferenceSettingsTest::testCustomTargetBundleDeletion in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ EntityReferenceSettingsTest.php - Tests that deletions of custom bundles are mirrored in field settings.
- EntityReferenceWidgetTest::testRequiredMediaField in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ EntityReferenceWidgetTest.php - Tests saving a required media library field.
- EntityViewBuilderTest::testViewField in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityViewBuilderTest.php - Tests EntityViewBuilder::viewField() language awareness.
- FieldConfigValidationTest::setUp in core/
modules/ field/ tests/ src/ Kernel/ Entity/ FieldConfigValidationTest.php - FieldCrudTest::testDeleteFieldCrossDeletion in core/
modules/ field/ tests/ src/ Kernel/ FieldCrudTest.php - Tests the cross deletion behavior between field storages and fields.
- FieldSettingsTest::testConfigurableFieldSettings in core/
tests/ Drupal/ KernelTests/ Core/ Field/ FieldSettingsTest.php - @covers \Drupal\field\Entity\FieldStorageConfig::getSettings @covers \Drupal\field\Entity\FieldStorageConfig::setSettings
- FieldUIDeleteTest::testDeleteField in core/
modules/ field_ui/ tests/ src/ Functional/ FieldUIDeleteTest.php - Tests that deletion removes field storages and fields as expected.
- field_field_storage_config_update in core/
modules/ field/ field.module - Implements hook_ENTITY_TYPE_update() for 'field_storage_config'.
- FileFieldTestBase::updateFileField in core/
modules/ file/ tests/ src/ Functional/ FileFieldTestBase.php - Updates an existing file field with new settings.
- FileFieldValidateTest::testRequired in core/
modules/ file/ tests/ src/ Functional/ FileFieldValidateTest.php - Tests the required property on file fields.
- FileFieldWidgetTest::testFileExtensionsSetting in core/
modules/ file/ tests/ src/ Functional/ FileFieldWidgetTest.php - Tests configuring file field's allowed file extensions setting.
- FileFieldWidgetTest::testMaximumUploadFileSizeValidation in core/
modules/ file/ tests/ src/ Functional/ FileFieldWidgetTest.php - Tests maximum upload file size validation.
- FileFieldWidgetTest::testPrivateFileSetting in core/
modules/ file/ tests/ src/ Functional/ FileFieldWidgetTest.php - Tests a file field with a "Private files" upload destination setting.
- ImageFieldWidgetTest::testWidgetElement in core/
modules/ image/ tests/ src/ Functional/ ImageFieldWidgetTest.php - Tests file widget element.
- JsonapiKernelTestBase::createTextField in core/
modules/ jsonapi/ tests/ src/ Kernel/ JsonapiKernelTestBase.php - Creates a field of an entity reference field storage on the bundle.
- LayoutBuilderDefaultValuesTest::setUp in core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderDefaultValuesTest.php - LayoutBuilderEntityViewDisplay::addSectionField in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Adds a layout section field to a given bundle.
- LayoutBuilderEntityViewDisplay::removeSectionField in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Removes a layout section field if it is no longer needed.
- ManageFieldsFunctionalTest::testDefaultValue in core/
modules/ field_ui/ tests/ src/ Functional/ ManageFieldsFunctionalTest.php - Tests that default value is correctly validated and saved.
- ManageFieldsFunctionalTest::testPreconfiguredFields in core/
modules/ field_ui/ tests/ src/ Functional/ ManageFieldsFunctionalTest.php - Tests the "preconfigured field" functionality.
- ManageFieldsFunctionalTest::testTranslationDefaults in core/
modules/ field_ui/ tests/ src/ Functional/ ManageFieldsFunctionalTest.php - Test translation defaults.
- ManageFieldsLifecycleTest::assertFieldSettings in core/
modules/ field_ui/ tests/ src/ Functional/ ManageFieldsLifecycleTest.php - Asserts field settings are as expected.
- ManageFieldsMultipleTypesTest::testReuseField in core/
modules/ field_ui/ tests/ src/ Functional/ ManageFieldsMultipleTypesTest.php - Tests that options are copied over when reusing a field.
- ManageFieldsMultipleTypesTest::testReuseFieldMultipleDisplay in core/
modules/ field_ui/ tests/ src/ Functional/ ManageFieldsMultipleTypesTest.php - Tests that options are copied over when reusing a field.
- ManageFieldsTest::testEntityReferenceToNonBundleableEntity in core/
modules/ field_ui/ tests/ src/ Functional/ ManageFieldsTest.php - Tests creating entity reference field to non-bundleable entity type.
- MigrateNodeTypeTest::testNodeType in core/
modules/ node/ tests/ src/ Kernel/ Migrate/ d6/ MigrateNodeTypeTest.php - Tests Drupal 6 node type to Drupal 8 migration.
- MigrateStubTest::testStubWithBundleFields in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateStubTest.php - Tests stub creation with bundle fields.
- MultipleValueWidgetTest::testFieldMultipleValueWidgetAddMoreNoValidation in core/
modules/ field/ tests/ src/ FunctionalJavascript/ MultipleValueWidgetTest.php - Tests that no validation occurs on field on "Add more" click.
- NodeBodyFieldStorageTest::testFieldOverrides in core/
modules/ node/ tests/ src/ Kernel/ NodeBodyFieldStorageTest.php - Tests node body field storage persistence even if there are no instances.
- NodeImportCreateTest::testImportCreate in core/
modules/ node/ tests/ src/ Kernel/ Config/ NodeImportCreateTest.php - Tests creating a content type during config import.
- NodeTypeTest::testNodeTypeEditing in core/
modules/ node/ tests/ src/ Functional/ NodeTypeTest.php - Tests editing a node type using the UI.
- node_add_body_field in core/
modules/ node/ node.module - Adds the default body field to a node type.
- NumberItemTest::testConstraints in core/
modules/ field/ tests/ src/ Kernel/ Number/ NumberItemTest.php - Tests constraints on numeric item fields.
- OEmbedFieldWidgetTest::testFieldWidgetHelpText in core/
modules/ media/ tests/ src/ Functional/ FieldWidget/ OEmbedFieldWidgetTest.php - Tests that the oEmbed field widget shows the configured help text.
- SearchCommentTest::testSearchResultsComment in core/
modules/ search/ tests/ src/ Functional/ SearchCommentTest.php - Verify that comments are rendered using proper format in search results.
- SearchCommentTest::testSearchResultsCommentAccess in core/
modules/ search/ tests/ src/ Functional/ SearchCommentTest.php - Verify access rules for comment indexing with different permissions.
- SelectionTest::setUp in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ Views/ SelectionTest.php - TaxonomyDefaultArgumentTest::testNodePathWithViewSelection in core/
modules/ taxonomy/ tests/ src/ Kernel/ Views/ TaxonomyDefaultArgumentTest.php - TermTest::setUp in core/
modules/ taxonomy/ tests/ src/ Functional/ TermTest.php - TextareaWithSummaryTest::testTextSummaryBehavior in core/
modules/ text/ tests/ src/ FunctionalJavascript/ TextareaWithSummaryTest.php - Tests the textSummary javascript behavior.
- UserEntityReferenceTest::testUserSelectionByRole in core/
modules/ user/ tests/ src/ Kernel/ UserEntityReferenceTest.php - Tests user selection by roles.
- ValidReferenceConstraintValidatorTest::testPreExistingItemsValidation in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ValidReferenceConstraintValidatorTest.php - Tests the validation of pre-existing items in an entity reference field.
- views_field_default_views_data in core/
modules/ views/ views.views.inc - Default views data implementation for a field.
- WidgetAccessTest::testRequiredFieldNoAccess in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetAccessTest.php - Tests the widget with a required field that the user can't access.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.