You are here

function entity_test_load in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/entity_test/entity_test.module \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\Entity\EntityTest The loaded entity object, or NULL if the entity cannot be loaded.

File

core/modules/system/tests/modules/entity_test/entity_test.module, line 320
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);
}