function cacheflush_load_multiple_by_properties in CacheFlush 8
Load entities by their property values.
Parameters
array $values: An associative array where the keys are the property names and the values are the values those properties must have.
Return value
null||array\Drupal\Core\Entity\EntityInterface An array of entity objects indexed by their ids.
Throws
\Exception Throws exception if exists.
7 calls to cacheflush_load_multiple_by_properties()
- CacheFlushAdvancedTest::interfaceCrud in modules/cacheflush_advanced/ tests/ src/ Functional/ CacheFlushAdvancedTest.php 
- Test add/remove on ajax form.
- CacheFlushCronUI::editForm in modules/cacheflush_cron/ tests/ src/ Functional/ CacheFlushCronUI.php 
- Edit form test.
- CacheFlushEntityTest::testCrudFunctions in modules/cacheflush_entity/ tests/ Functional/ CacheFlushEntityTest.php 
- Tests CRUD functions for cacheflush entity.
- CacheFlushTest::clearPresetMenu in tests/src/ Functional/ CacheFlushTest.php 
- Check clear cache.
- CacheFlushUICRUD::crudTest in modules/cacheflush_ui/ tests/ src/ Functional/ CacheFlushUICRUD.php 
- Test CRUD.
File
- modules/cacheflush_entity/ cacheflush_entity.module, line 74 
- Cacheflush Entity API.
Code
function cacheflush_load_multiple_by_properties(array $values = []) {
  return \Drupal::entityTypeManager()
    ->getStorage('cacheflush')
    ->loadByProperties($values);
}