function entity_get_form

Returns the built and processed entity form for the given entity.

Parameters

EntityInterface $entity: The entity to be created or edited.

$operation: (optional) The operation identifying the form variation to be returned.

Return value

The processed form for the given entity and operation.

25 calls to entity_get_form()
comment_add in drupal/core/modules/comment/comment.module
Returns a rendered form to comment the given node.
comment_edit_page in drupal/core/modules/comment/comment.module
Page callback: Displays the comment editing form.
config_test_add_page in drupal/core/modules/config/tests/config_test/config_test.module
Page callback: Presents the ConfigTest creation form.
config_test_edit_page in drupal/core/modules/config/tests/config_test/config_test.module
Page callback: Presents the ConfigTest edit form.
contact_category_add in drupal/core/modules/contact/contact.admin.inc
Page callback: Presents the category creation form.

... See full list

3 string references to 'entity_get_form'
taxonomy_menu in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_menu().
user_menu in drupal/core/modules/user/user.module
Implements hook_menu().
views_ui_menu in drupal/core/modules/views/views_ui/views_ui.module
Implements hook_menu().

File

drupal/core/includes/entity.inc, line 443
Entity API for handling entities like nodes or users.

Code

function entity_get_form(EntityInterface $entity, $operation = 'default', $langcode = NULL) {
  $form_state = entity_form_state_defaults($entity, $operation, $langcode);
  $form_id = entity_form_id($entity, $operation);
  return drupal_build_form($form_id, $form_state);
}