function field_test_entity_save

Saves a test_entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to save.

5 calls to field_test_entity_save()

File

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

Code

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