136 calls to entity_create()

BreakpointAPITest::testConfigName in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointAPITest.php
Test Breakpoint::buildConfigName().
BreakpointCRUDTest::testBreakpointCRUD in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php
Test CRUD operations for breakpoints.
BreakpointGroup::addBreakpointFromMediaQuery in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
Adds a breakpoint using a name and a media query.
BreakpointGroupAPITest::testConfigName in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupAPITest.php
Test Breakpoint::buildConfigName().
BreakpointGroupCRUDTest::testBreakpointGroupCRUD in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupCRUDTest.php
Test CRUD operations for breakpoint groups.
BreakpointThemeTest::testThemeBreakpointGroup in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php
Test the breakpoints defined by the custom group.
BreakpointThemeTest::testThemeBreakpointGroupModule in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php
Test the breakpoints defined by the custom group in the module.
BreakpointThemeTest::testThemeBreakpoints in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php
Test the breakpoints provided by a theme.
CommentApprovalTest::testApprovalAdminInterface in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentApprovalTest.php
Test comment approval functionality through admin/content/comment.
CommentApprovalTest::testApprovalNodeInterface in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentApprovalTest.php
Tests comment approval functionality through the node interface.
CommentCSSTest::testCommentClasses in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentCSSTest.php
Tests CSS classes on comments.
CommentLinksTest::setEnvironment in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentLinksTest.php
Re-configures the environment, module settings, and user permissions.
CommentNewIndicatorTest::testCommentNewCommentsIndicator in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentNewIndicatorTest.php
Tests new comment marker.
CommentTestBase::postComment in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
Posts a comment.
comment_add in drupal/core/modules/comment/comment.module
Returns a rendered form to comment the given node.
ConfigEntityTest::testCRUD in drupal/core/modules/config/lib/Drupal/config/Tests/ConfigEntityTest.php
Tests CRUD operations.
config_test_add_page in drupal/core/modules/config/tests/config_test/config_test.module
Page callback: Presents the ConfigTest creation form.
config_test_config_import_create in drupal/core/modules/config/tests/config_test/config_test.module
Implements hook_config_import_create().
contact_category_add in drupal/core/modules/contact/contact.admin.inc
Page callback: Presents the category creation form.
contact_config_import_create in drupal/core/modules/contact/contact.module
Implements MODULE_config_import_create().
DefaultViewRecentComments::setUp in drupal/core/modules/views/lib/Drupal/views/Tests/Comment/DefaultViewRecentComments.php
Sets up a Drupal site for running functional and integration tests.
DefaultViewsTest::createTerm in drupal/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php
Returns a new term with random properties in vocabulary $vid.
DefaultViewsTest::setUp in drupal/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php
Sets up a Drupal site for running functional and integration tests.
Display::generateUnboundDisplay in drupal/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/Display.php
Implements BoundDisplayInterface::generateUnboundDisplay().
DrupalJsonldNormalizerTest::testNormalize in drupal/core/modules/jsonld/lib/Drupal/jsonld/Tests/DrupalJsonldNormalizerTest.php
Tests the normalize function.
DrupalJsonldNormalizerTest::testSupportsNormalization in drupal/core/modules/jsonld/lib/Drupal/jsonld/Tests/DrupalJsonldNormalizerTest.php
Tests the supportsNormalization function.
EntityAccessTest::testEntityAccess in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityAccessTest.php
Ensures entity access is properly working.
EntityAccessTest::testEntityAccessDefaultController in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityAccessTest.php
Ensures that the default controller is used as a fallback.
EntityAccessTest::testEntityTranslationAccess in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityAccessTest.php
Ensures entity access for entity translations is properly working.
EntityApiTest::testCRUD in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityApiTest.php
Tests basic CRUD functionality of the Entity API.
EntityCrudHookTest::testCommentHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on comments.
EntityCrudHookTest::testFileHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on files.
EntityCrudHookTest::testNodeHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on nodes.
EntityCrudHookTest::testTaxonomyTermHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy terms.
EntityCrudHookTest::testTaxonomyVocabularyHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy vocabularies.
EntityCrudHookTest::testUserHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on users.
EntityFieldTest::createTestEntity in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
Creates a test entity.
EntityFieldTest::testIntrospection in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
Tests introspection and getting metadata upfront.
EntityFieldTest::testReadWrite in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
Tests reading and writing properties and field items.
EntityFilteringThemeTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Theme/EntityFilteringThemeTest.php
Sets up a Drupal site for running functional and integration tests.
EntityPropertiesTest::testEntityLabel in drupal/core/modules/field/lib/Drupal/field/Tests/EntityPropertiesTest.php
Tests label key and label callback of an entity.
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.
EntityRevisionsTest::testRevisions in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityRevisionsTest.php
Check node revision related operations.
EntityTranslationTest::testEntityLanguageMethods in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php
Tests language related methods of the Entity class.
EntityTranslationTest::testMultilingualProperties in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php
Tests multilingual properties.
EntityTranslationUITest::createEntity in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationUITest.php
Creates the entity to be translated.
EntityUUIDTest::testCRUD in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUUIDTest.php
Tests UUID generation in entity CRUD operations.
entity_test_add in drupal/core/modules/system/tests/modules/entity_test/entity_test.module
Menu callback: displays the 'Add new entity_test' form.
FieldEntityTest::testGetEntity in drupal/core/modules/views/lib/Drupal/views/Tests/Entity/FieldEntityTest.php
Tests the get_entity method.
FieldUiTestBase::setUp in drupal/core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUiTestBase.php
Sets up a Drupal site for running functional and integration tests.
field_test_create_entity in drupal/core/modules/field/tests/modules/field_test/field_test.entity.inc
Creates a basic test_entity entity.
field_test_entity_nested_form_submit in drupal/core/modules/field/tests/modules/field_test/field_test.entity.inc
Submit handler for field_test_entity_nested_form().
field_test_entity_nested_form_validate in drupal/core/modules/field/tests/modules/field_test/field_test.entity.inc
Validate handler for field_test_entity_nested_form().
FileFieldTestBase::getTestFile in drupal/core/modules/file/lib/Drupal/file/Tests/FileFieldTestBase.php
Retrieves a sample file of the specified type.
FileManagedTestBase::createFile in drupal/core/modules/file/lib/Drupal/file/Tests/FileManagedTestBase.php
Create a file and save it to the files table and assert that it occurs correctly.
FileMoveTest::testNormal in drupal/core/modules/system/lib/Drupal/system/Tests/Image/FileMoveTest.php
Tests moving a randomly generated image.
file_save_data in drupal/core/modules/file/file.module
Saves a file to the specified destination and creates a database entry.
file_save_upload in drupal/core/includes/file.inc
Saves a file upload to a new location.
form_test_form_user_register_form_alter in drupal/core/modules/system/tests/modules/form_test/form_test.module
Implements hook_form_FORM_ID_alter() for the registration form.
form_test_two_instances in drupal/core/modules/system/tests/modules/form_test/form_test.module
Menu callback that returns two instances of the node form.
ForumBlockTest::testActiveForumTopicsBlock in drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumBlockTest.php
ForumTest::doAdminTests in drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php
Runs admin tests on the admin user.
forum_enable in drupal/core/modules/forum/forum.install
Implements hook_enable().
forum_form_submit in drupal/core/modules/forum/forum.admin.inc
Form submission handler for forum_form_forum() and forum_form_container().
GroupwiseMax::get_temporary_view in drupal/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php
Helper function to create a pseudo view.
hook_config_import_create in drupal/core/modules/config/config.api.php
Create configuration upon synchronizing configuration changes.
ImageAdminStylesTest::testStyleReplacement in drupal/core/modules/image/lib/Drupal/image/Tests/ImageAdminStylesTest.php
Test deleting a style and choosing a replacement style.
ImageDimensionsTest::testImageDimensions in drupal/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php
Test styled image dimensions cumulatively.
ImageFieldDefaultImagesTest::testDefaultImages in drupal/core/modules/image/lib/Drupal/image/Tests/ImageFieldDefaultImagesTest.php
Tests CRUD for fields and fields instances with default images.
ImageStylesPathAndUrlTest::setUp in drupal/core/modules/image/lib/Drupal/image/Tests/ImageStylesPathAndUrlTest.php
Sets up a Drupal site for running functional and integration tests.
ImageThemeFunctionTest::testImageFormatterTheme in drupal/core/modules/image/lib/Drupal/image/Tests/ImageThemeFunctionTest.php
Tests usage of the image field formatters.
ImageThemeFunctionTest::testImageStyleTheme in drupal/core/modules/image/lib/Drupal/image/Tests/ImageThemeFunctionTest.php
Tests usage of the image style theme function.
image_config_import_create in drupal/core/modules/image/image.module
Implements hook_config_import_create().
image_style_add_form_submit in drupal/core/modules/image/image.admin.inc
Submit handler for adding a new image style.
image_style_form_submit in drupal/core/modules/image/image.admin.inc
Submit handler for saving an image style.
LinkCancel::render_link in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkCancel.php
LinkEdit::render in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php
Render the field.
LinkEdit::render_link in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkEdit.php
LocaleCompareTest::makePoFile in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php
Creates a translation file and tests its timestamp.
locale_translate_batch_import in drupal/core/modules/locale/locale.bulk.inc
Perform interface translation import as a batch step.
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.
Name::render_link in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php
NcsLastCommentName::render in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NcsLastCommentName.php
Render the field.
NodeAccessPagerTest::testCommentPager in drupal/core/modules/node/lib/Drupal/node/Tests/NodeAccessPagerTest.php
Tests the comment pager for nodes with multiple grants per realm.
NodeNewComments::render_link in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeNewComments.php
NodeSaveTest::testDeterminingChanges in drupal/core/modules/node/lib/Drupal/node/Tests/NodeSaveTest.php
Tests determing changes in hook_node_presave() and verifies the static node load cache is cleared upon save.
NodeSaveTest::testImport in drupal/core/modules/node/lib/Drupal/node/Tests/NodeSaveTest.php
Checks whether custom node IDs are saved properly during an import operation.
node_add in drupal/core/modules/node/node.pages.inc
Page callback: Provides the node submission form.
openid_authentication in drupal/core/modules/openid/openid.module
Authenticate a user or attempt registration.
PathTaxonomyTermTest::setUp in drupal/core/modules/path/lib/Drupal/path/Tests/PathTaxonomyTermTest.php
Sets up a Drupal site for running functional and integration tests.
PictureAdminUITest::setUp in drupal/core/modules/picture/lib/Drupal/picture/Tests/PictureAdminUITest.php
Drupal\simpletest\WebTestBase\setUp().
PictureFieldDisplayTest::setUp in drupal/core/modules/picture/lib/Drupal/picture/Tests/PictureFieldDisplayTest.php
Drupal\simpletest\WebTestBase\setUp().
PictureMapping::createDuplicate in drupal/core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php
Implements EntityInterface::createDuplicate().
picture_mapping_page_add in drupal/core/modules/picture/picture_mapping.admin.inc
Page callback: Provides the new picture mapping addition form.
RESTTestBase::entityCreate in drupal/core/modules/rest/lib/Drupal/rest/Tests/RESTTestBase.php
Creates entity objects based on their types.
SaveTest::testFileSave in drupal/core/modules/file/lib/Drupal/file/Tests/SaveTest.php
SaveUploadTest::setUp in drupal/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Sets up a Drupal site for running functional and integration tests.
standard_install in drupal/core/profiles/standard/standard.install
Implements hook_install().
Tables::addField in drupal/core/modules/field/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Tables.php
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.
Taxonomy::render_link in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/Taxonomy.php
Render whatever the data is as a link to the taxonomy.
TaxonomyTermReferenceItemTest::setUp in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php
Sets up a Drupal site for running functional and integration tests.
TaxonomyTermReferenceItemTest::testTaxonomyTermReferenceItem in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php
Tests using entity fields of the taxonomy term reference field type.
TaxonomyTestBase::createTerm in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTestBase.php
Returns a new term with random properties in vocabulary $vid.
TaxonomyTestBase::createTerm in drupal/core/modules/views/lib/Drupal/views/Tests/Taxonomy/TaxonomyTestBase.php
Returns a new term with random properties in vocabulary $vid.
TaxonomyTestBase::createVocabulary in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTestBase.php
Returns a new vocabulary with random properties.
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.
taxonomy_field_presave in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_field_presave().
taxonomy_term_add in drupal/core/modules/taxonomy/taxonomy.admin.inc
Returns a rendered edit form to create a new term associated to the given vocabulary.
taxonomy_vocabulary_add in drupal/core/modules/taxonomy/taxonomy.admin.inc
Page callback: provides the vocabulary creation form.
TermTest::testTaxonomyGetTermByName in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php
Test taxonomy_term_load_multiple_by_name().
TermTranslationUITest::setupBundle in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php
Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::setupBundle().
TermTranslationUITest::testTranslateLinkVocabularyAdminPage in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php
Tests translate link on vocabulary term list.
UnboundDisplay::generateDisplay in drupal/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/UnboundDisplay.php
Implements UnboundDisplayInterface::generateDisplay().
UserEntityCallbacksTest::setUp in drupal/core/modules/user/lib/Drupal/user/Tests/UserEntityCallbacksTest.php
Sets up a Drupal site for running functional and integration tests.
Username::render_link in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Username.php
UserRouteController::register in drupal/core/modules/user/lib/Drupal/user/UserRouteController.php
Returns the user registration form.
UserSaveTest::testUserImport in drupal/core/modules/user/lib/Drupal/user/Tests/UserSaveTest.php
Test creating a user with arbitrary uid.
user_admin in drupal/core/modules/user/user.admin.inc
@file Admin page callback file for the user module.
user_build_filter_query in drupal/core/modules/user/user.module
Extends a query object for user administration filters based on session.
user_external_login_register in drupal/core/modules/user/user.module
Helper function for authentication modules. Either logs in or registers the current user, based on username. Either way, the global $user object is populated and login tasks are performed.
ValidatorTest::setUp in drupal/core/modules/file/lib/Drupal/file/Tests/ValidatorTest.php
Sets up a Drupal site for running functional and integration tests.
ValidatorTest::testFileValidateExtensions in drupal/core/modules/file/lib/Drupal/file/Tests/ValidatorTest.php
Test the file_validate_extensions() function.
ValidatorTest::testFileValidateNameLength in drupal/core/modules/file/lib/Drupal/file/Tests/ValidatorTest.php
This will ensure the filename length is valid.
ValidatorTest::testFileValidateSize in drupal/core/modules/file/lib/Drupal/file/Tests/ValidatorTest.php
Test file_validate_size().
ViewExecutable::createDuplicate in drupal/core/modules/views/lib/Drupal/views/ViewExecutable.php
Overrides Drupal\entity\Entity::createDuplicate().
views_config_import_create in drupal/core/modules/views/views.module
Implements hook_config_import_create().
views_create_view in drupal/core/modules/views/views.module
Creates a view from an array of values.
views_new_view in drupal/core/modules/views/views.module
Create an empty view to work with.
views_ui_add_page in drupal/core/modules/views/views_ui/admin.inc
Page callback to add a new view.
WebTestBase::drupalCreateNode in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Creates a node based on default settings.
WebTestBase::drupalCreateUser in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Create a user with a given set of permissions.
_breakpoint_group_create_or_load in drupal/core/modules/breakpoint/breakpoint.module
Helper function to easily create/load a breakpoint group.
_field_create_entity_from_ids in drupal/core/modules/field/field.module
Assembles a partial entity structure with initial IDs.