function entity_test_edit

Menu callback: displays the 'Edit existing entity_test' form.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to be edited.

Return value

array The processed form for the edited entity.

See also

entity_test_menu()

1 string reference to 'entity_test_edit'
entity_test_menu in drupal/core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_menu().

File

drupal/core/modules/system/tests/modules/entity_test/entity_test.module, line 272
Test module for the entity API providing several entity types for testing.

Code

function entity_test_edit(EntityInterface $entity) {
  drupal_set_title($entity
    ->label(), PASS_THROUGH);
  return entity_get_form($entity);
}