function field_test_entity_save

Saves a test_entity.

Parameters

$entity: The entity to save.

10 calls to field_test_entity_save()
DisplayApiTest::setUp in drupal/core/modules/field/lib/Drupal/field/Tests/DisplayApiTest.php
Set the default field storage backend for fields created during tests.
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().
FormTest::testNestedFieldForm in drupal/core/modules/field/lib/Drupal/field/Tests/FormTest.php
Tests Field API form integration within a subform.
OptionsFieldTest::testUpdateAllowedValues in drupal/core/modules/field/modules/options/lib/Drupal/options/Tests/OptionsFieldTest.php
Test that allowed values can be updated.
OptionsWidgetsTest::testCheckBoxes in drupal/core/modules/field/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php
Tests the 'options_buttons' widget (multiple select).

... See full list

File

drupal/core/modules/field/tests/modules/field_test/field_test.entity.inc, line 168
Defines an entity type.

Code

function field_test_entity_save(EntityInterface $entity) {
  $entity
    ->save();
}