function entity_test_load

Loads a test entity.

Parameters

int $id: A test entity ID.

bool $reset: A boolean indicating that the internal cache should be reset.

Return value

\Drupal\entity_test\Plugin\Core\Entity\EntityTest The loaded entity object, or FALSE if the entity cannot be loaded.

File

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

Code

function entity_test_load($id, $reset = FALSE) {
  return entity_load('entity_test', $id, $reset);
}