You are here

61 calls to FieldConfig::loadByName() in Drupal 8

block_content_add_body_field in core/modules/block_content/block_content.module
Adds the default body field to a custom block type.
BulkDeleteTest::testDeleteField in core/modules/field/tests/src/Kernel/BulkDeleteTest.php
Verify that deleting a field leaves the field data items in the database and that the appropriate Field API functions can operate on the deleted data and field definition.
BulkDeleteTest::testPurgeField in core/modules/field/tests/src/Kernel/BulkDeleteTest.php
Verify that field data items and fields are purged when a field storage is deleted.
BulkDeleteTest::testPurgeFieldStorage in core/modules/field/tests/src/Kernel/BulkDeleteTest.php
Verify that field storages are preserved and purged correctly as multiple fields are deleted and purged.
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
Test 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.
CommentManager::addBodyField in core/modules/comment/src/CommentManager.php
Creates a comment_body field.
CommentNonNodeTest::postComment in core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
Posts a comment.
CommentTestBase::postComment in core/modules/comment/src/Tests/CommentTestBase.php
Posts a comment.
CommentTestBase::postComment in core/modules/comment/tests/src/Functional/CommentTestBase.php
Posts a comment.
CommentTestBase::setCommentSettings in core/modules/comment/src/Tests/CommentTestBase.php
Sets a comment settings variable for the article content type.
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.
DenormalizeTest::testMarkFieldForDeletion in core/modules/hal/tests/src/Kernel/DenormalizeTest.php
Test that a field set to an empty array is different than an absent field.
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 if an entity reference field having multiple target bundles is storing the auto-created entity in the right destination.
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.
EntityReferenceTestTrait::createEntityReferenceField in core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php
Creates a field of an entity reference field storage on the specified bundle.
EntityViewBuilderTest::testViewField in core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
Tests EntityViewBuilder::viewField() language awareness.
FieldCrudTest::testDeleteFieldCrossDeletion in core/modules/field/tests/src/Kernel/FieldCrudTest.php
Tests the cross deletion behavior between field storages and fields.
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/src/Tests/FileFieldTestBase.php
Updates an existing file field with new settings.
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::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::createEntityReferenceField in core/modules/jsonapi/tests/src/Kernel/JsonapiKernelTestBase.php
Creates a field of an entity reference field storage on the bundle.
JsonapiKernelTestBase::createTextField in core/modules/jsonapi/tests/src/Kernel/JsonapiKernelTestBase.php
Creates a field of an entity reference field storage on the bundle.
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.
layout_builder_post_update_make_layout_untranslatable in core/modules/layout_builder/layout_builder.post_update.php
Set the layout builder field as non-translatable where possible.
ManageFieldsFunctionalTest::assertFieldSettings in core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
Asserts field settings are as expected.
ManageFieldsFunctionalTest::testDefaultValue in core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
Tests that default value is correctly validated and saved.
ManageFieldsFunctionalTest::testDeleteField in core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
Tests that deletion removes field storages and fields as expected.
ManageFieldsFunctionalTest::testDeleteTaxonomyField in core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
Tests that deletion removes field storages and fields as expected for a term.
ManageFieldsFunctionalTest::testPreconfiguredFields in core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
Tests the "preconfigured field" functionality.
MigrateNodeTypeTest::testNodeType in core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTypeTest.php
Tests Drupal 6 node type to Drupal 8 migration.
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.
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.