function cacheflush_load_multiple in CacheFlush 8
Same name and namespace in other branches
- 7.3 modules/cacheflush_entity/cacheflush_entity.module \cacheflush_load_multiple()
Loads multiple cacheflush entities from the database.
Parameters
array $ids: (optional) An array of entity IDs. If omitted, all entities are loaded.
Return value
null||array\Drupal\Core\Entity\EntityInterface An array of entity objects indexed by their IDs. Returns an empty array if no matching entities are found.
Throws
\Exception Throws exception if exists.
1 call to cacheflush_load_multiple()
- CacheFlushEntityTest::testCrudFunctions in modules/
cacheflush_entity/ tests/ Functional/ CacheFlushEntityTest.php - Tests CRUD functions for cacheflush entity.
File
- modules/
cacheflush_entity/ cacheflush_entity.module, line 55 - Cacheflush Entity API.
Code
function cacheflush_load_multiple(array $ids = NULL) {
return \Drupal::entityTypeManager()
->getStorage('cacheflush')
->loadMultiple($ids);
}