function entity_test_mul_load in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_mul_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\EntityTestMul The loaded entity object, or FALSE if the entity cannot be loaded.
1 call to entity_test_mul_load()
- ContentTranslationSyncImageTest::saveEntity in core/
modules/ content_translation/ src/ Tests/ ContentTranslationSyncImageTest.php - Saves the passed entity and reloads it, enabling compatibility mode.
File
- core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module, line 350 - Test module for the entity API providing several entity types for testing.
Code
function entity_test_mul_load($id, $reset = FALSE) {
return entity_load('entity_test_mul', $id, $reset);
}