Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 9.x
»
field.crud.inc
»
field_create_instance
Search Drupal 9.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 9.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
Deprecated
92 calls to field_create_instance()
AlterTest::testDefaultWidgetPropertiesAlter
in drupal/
core/
modules/
field_ui/
lib/
Drupal/
field_ui/
Tests/
AlterTest.php
Tests
hook_field_widget_properties_alter
() on the default field widget.
ApiDataTest::setUp
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Field/
ApiDataTest.php
Sets up a Drupal site for running functional and integration tests.
ArbitraryRebuildTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Form/
ArbitraryRebuildTest.php
Sets up a Drupal site for running functional and integration tests.
BulkDeleteTest::setUp
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
BulkDeleteTest.php
Set the default field storage backend for fields created during tests.
CrudTest::testDeleteField
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
Test the deletion of a field.
CrudTest::testReadFields
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
Tests reading field definitions.
CrudTest::testUpdateField
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
Test updating a field.
DefaultViewsTest::setUp
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
DefaultViewsTest.php
Sets up a Drupal site for running functional and integration tests.
DisplayApiTest::setUp
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
DisplayApiTest.php
Set the default field storage backend for fields created during tests.
EmailFieldTest::testEmailField
in drupal/
core/
modules/
field/
modules/
email/
lib/
Drupal/
email/
Tests/
EmailFieldTest.php
Tests e-mail field.
EntityQueryRelationshipTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityQueryRelationshipTest.php
Sets up a Drupal site for running functional and integration tests.
EntityQueryTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityQueryTest.php
Sets up a Drupal site for running functional and integration tests.
EntityQueryTest::testCount
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityQueryTest.php
Test entity count query.
EntityTranslationTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityTranslationTest.php
Sets up a Drupal site for running functional and integration tests.
EntityTranslationUITest::setupTestFields
in drupal/
core/
modules/
translation_entity/
lib/
Drupal/
translation_entity/
Tests/
EntityTranslationUITest.php
Creates the test fields.
entity_test_install
in drupal/
core/
modules/
system/
tests/
modules/
entity_test/
entity_test.install
Implements
hook_install
().
FieldAccessTest::setUp
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAccessTest.php
Set the default field storage backend for fields created during tests.
FieldAttachOtherTest::testFieldAttachCache
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAttachOtherTest.php
Test field cache.
FieldAttachOtherTest::testFieldAttachPrepareViewMultiple
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAttachOtherTest.php
Tests the 'multiple entity' behavior of
field_attach_prepare_view
().
FieldAttachStorageTest::testFieldAttachCreateRenameBundle
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAttachStorageTest.php
Test
field_attach_create_bundle
() and
field_attach_rename_bundle
().
FieldAttachStorageTest::testFieldAttachDeleteBundle
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAttachStorageTest.php
Test
field_attach_delete_bundle
().
FieldAttachStorageTest::testFieldAttachLoadMultiple
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAttachStorageTest.php
Test the 'multiple' load feature.
FieldAttachStorageTest::testFieldAttachSaveLoadDifferentStorage
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAttachStorageTest.php
Test saving and loading fields using different storage backends.
FieldAttachStorageTest::testFieldStorageDetailsAlter
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAttachStorageTest.php
Test storage details alteration.
FieldAttachTestBase::createFieldWithInstance
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldAttachTestBase.php
Create a field and an instance of it.
FieldInfoTest::testFieldInfo
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInfoTest.php
Test that field types and field definitions are correcly cached.
FieldInfoTest::testFieldMap
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInfoTest.php
Test
field_info_field_map
().
FieldInfoTest::testInstanceDisabledEntityType
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInfoTest.php
Test that instances on disabled entity types are filtered out.
FieldInfoTest::testInstancePrepare
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInfoTest.php
Test that cached instance definitions are ready for current runtime context.
FieldInstanceCrudTest::testCreateFieldInstance
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInstanceCrudTest.php
Test the creation of a field instance.
FieldInstanceCrudTest::testDeleteFieldInstance
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInstanceCrudTest.php
Test the deletion of a field instance.
FieldInstanceCrudTest::testReadFieldInstance
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInstanceCrudTest.php
Test reading back an instance definition.
FieldInstanceCrudTest::testUpdateFieldInstance
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInstanceCrudTest.php
Test the update of a field instance.
FieldOverview::submit
in drupal/
core/
modules/
field_ui/
lib/
Drupal/
field_ui/
FieldOverview.php
Overrides
Drupal\field_ui\OverviewBase::submit
().
FieldSqlStorageTest::setUp
in drupal/
core/
modules/
field/
modules/
field_sql_storage/
lib/
Drupal/
field_sql_storage/
Tests/
FieldSqlStorageTest.php
Sets up a Drupal site for running functional and integration tests.
FieldSqlStorageTest::testFieldUpdateIndexesWithData
in drupal/
core/
modules/
field/
modules/
field_sql_storage/
lib/
Drupal/
field_sql_storage/
Tests/
FieldSqlStorageTest.php
Test adding and removing indexes while data is present.
FieldSqlStorageTest::testUpdateFieldSchemaWithData
in drupal/
core/
modules/
field/
modules/
field_sql_storage/
lib/
Drupal/
field_sql_storage/
Tests/
FieldSqlStorageTest.php
Test trying to update a field with data.
FieldTestBase::setUpInstances
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Field/
FieldTestBase.php
FileFieldTestBase::attachFileField
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldTestBase.php
Attaches a file field to an entity.
FormTest::testFieldFormAccess
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FormTest.php
Tests fields with no 'edit' access.
FormTest::testFieldFormJSAddMore
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FormTest.php
FormTest::testFieldFormMultipleWidget
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FormTest.php
Tests widgets handling multiple values.
FormTest::testFieldFormMultivalueWithRequiredRadio
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FormTest.php
Tests widget handling of multiple required radios.
FormTest::testFieldFormSingle
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FormTest.php
FormTest::testFieldFormSingleRequired
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FormTest.php
FormTest::testFieldFormUnlimited
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FormTest.php
FormTest::testNestedFieldForm
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FormTest.php
Tests Field API form integration within a subform.
forum_enable
in drupal/
core/
modules/
forum/
forum.install
Implements
hook_enable
().
ImageFieldDefaultImagesTest::testDefaultImages
in drupal/
core/
modules/
image/
lib/
Drupal/
image/
Tests/
ImageFieldDefaultImagesTest.php
Tests CRUD for fields and fields instances with default images.
ImageFieldTestBase::createImageField
in drupal/
core/
modules/
image/
lib/
Drupal/
image/
Tests/
ImageFieldTestBase.php
Create a new image field.
LinkFieldTest::testLinkFormatter
in drupal/
core/
modules/
field/
modules/
link/
lib/
Drupal/
link/
Tests/
LinkFieldTest.php
Tests the default 'link' formatter.
LinkFieldTest::testLinkSeparateFormatter
in drupal/
core/
modules/
field/
modules/
link/
lib/
Drupal/
link/
Tests/
LinkFieldTest.php
Tests the 'link_separate' formatter.
LinkFieldTest::testLinkTitle
in drupal/
core/
modules/
field/
modules/
link/
lib/
Drupal/
link/
Tests/
LinkFieldTest.php
Tests the title settings of a link field.
LinkFieldTest::testURLValidation
in drupal/
core/
modules/
field/
modules/
link/
lib/
Drupal/
link/
Tests/
LinkFieldTest.php
Tests link field URL validation.
ManageFieldsTest::setUp
in drupal/
core/
modules/
field_ui/
lib/
Drupal/
field_ui/
Tests/
ManageFieldsTest.php
Sets up a Drupal site for running functional and integration tests.
ManageFieldsTest::testDefaultValue
in drupal/
core/
modules/
field_ui/
lib/
Drupal/
field_ui/
Tests/
ManageFieldsTest.php
Tests that default value is correctly validated and saved.
ManageFieldsTest::testHiddenFields
in drupal/
core/
modules/
field_ui/
lib/
Drupal/
field_ui/
Tests/
ManageFieldsTest.php
Tests that Field UI respects the 'no_ui' option in
hook_field_info
().
MultiFormTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Ajax/
MultiFormTest.php
Sets up a Drupal site for running functional and integration tests.
NodeAccessFieldTest::setUp
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeAccessFieldTest.php
Sets up a Drupal site for running functional and integration tests.
node_add_body_field
in drupal/
core/
modules/
node/
node.module
Adds the default body field to a node type.
NumberFieldTest::testNumberDecimalField
in drupal/
core/
modules/
field/
modules/
number/
lib/
Drupal/
number/
Tests/
NumberFieldTest.php
Test number_decimal field.
OptionsDynamicValuesTest::setUp
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsDynamicValuesTest.php
Set the default field storage backend for fields created during tests.
OptionsFieldTest::setUp
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsFieldTest.php
Set the default field storage backend for fields created during tests.
OptionsFieldTest::testUpdateAllowedValues
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsFieldTest.php
Test that allowed values can be updated.
OptionsFieldUITest::createOptionsField
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsFieldUITest.php
Helper function to create list field of a given type.
OptionsWidgetsTest::testCheckBoxes
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsWidgetsTest.php
Tests the 'options_buttons' widget (multiple select).
OptionsWidgetsTest::testOnOffCheckbox
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsWidgetsTest.php
Tests the 'options_onoff' widget.
OptionsWidgetsTest::testRadioButtons
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsWidgetsTest.php
Tests the 'options_buttons' widget (single select).
OptionsWidgetsTest::testSelectListMultiple
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsWidgetsTest.php
Tests the 'options_select' widget (multiple select).
OptionsWidgetsTest::testSelectListSingle
in drupal/
core/
modules/
field/
modules/
options/
lib/
Drupal/
options/
Tests/
OptionsWidgetsTest.php
Tests the 'options_select' widget (single select).
RdfaMarkupTest::testAttributesInMarkupFile
in drupal/
core/
modules/
rdf/
lib/
Drupal/
rdf/
Tests/
RdfaMarkupTest.php
Tests if file fields in teasers have correct resources.
RebuildTest::testPreserveFormActionAfterAJAX
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Form/
RebuildTest.php
Tests that a form's action is retained after an Ajax submission.
RssTest::setUp
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
RssTest.php
Sets up a Drupal site for running functional and integration tests.
standard_install
in drupal/
core/
profiles/
standard/
standard.install
Implements
hook_install
().
TaggedWithTest::setUp
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Wizard/
TaggedWithTest.php
Sets up a Drupal site for running functional and integration tests.
TaggedWithTest::testTaggedWithByNodeType
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Wizard/
TaggedWithTest.php
Tests that the "tagged with" form element only shows for node types that support it.
TaxonomyTermReferenceItemTest::setUp
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
TaxonomyTermReferenceItemTest.php
Sets up a Drupal site for running functional and integration tests.
TaxonomyTestBase::mockStandardInstall
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Taxonomy/
TaxonomyTestBase.php
Provides a workaround for the inability to use the standard profile.
TermFieldMultipleVocabularyTest::setUp
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
TermFieldMultipleVocabularyTest.php
Sets up a Drupal site for running functional and integration tests.
TermFieldTest::setUp
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
TermFieldTest.php
Sets up a Drupal site for running functional and integration tests.
TermIndexTest::setUp
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
TermIndexTest.php
Sets up a Drupal site for running functional and integration tests.
TermTest::setUp
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
TermTest.php
Sets up a Drupal site for running functional and integration tests.
TextFieldTest::testTextFieldValidation
in drupal/
core/
modules/
field/
modules/
text/
lib/
Drupal/
text/
Tests/
TextFieldTest.php
Test text field validation.
TextFieldTest::_testTextfieldWidgets
in drupal/
core/
modules/
field/
modules/
text/
lib/
Drupal/
text/
Tests/
TextFieldTest.php
Helper function for testTextfieldWidgets().
TextFieldTest::_testTextfieldWidgetsFormatted
in drupal/
core/
modules/
field/
modules/
text/
lib/
Drupal/
text/
Tests/
TextFieldTest.php
Helper function for testTextfieldWidgetsFormatted().
TokenReplaceTest::setUp
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
TokenReplaceTest.php
Sets up a Drupal site for running functional and integration tests.
TranslationTest::setUp
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
TranslationTest.php
Set the default field storage backend for fields created during tests.
TranslationTest::testFieldDisplayLanguage
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
TranslationTest.php
Tests display language logic for translatable fields.
UserRegistrationTest::testRegistrationWithUserFields
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserRegistrationTest.php
Tests Field API fields on user registration forms.
VocabularyUnitTest::testTaxonomyVocabularyChangeMachineName
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
VocabularyUnitTest.php
Tests that machine name changes are properly reflected.
VocabularyUnitTest::testUninstallReinstall
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
VocabularyUnitTest.php
Test uninstall and reinstall of the taxonomy module.
_comment_body_field_create
in drupal/
core/
modules/
comment/
comment.module
Creates a comment_body field instance for a given node type.