function entity_load_multiple_by_properties

Load entities by their property values.

Parameters

string $entity_type: The entity type to load, e.g. node or user.

array $values: An associative array where the keys are the property names and the values are the values those properties must have.

Return value

array An array of entity objects indexed by their ids.

59 calls to entity_load_multiple_by_properties()
aggregator_save_category in drupal/core/modules/aggregator/aggregator.module
Adds/edits/deletes aggregator categories.
Block::remove in drupal/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::remove().
block_list in drupal/core/modules/block/block.module
Returns all blocks in the specified region for the current user.
block_theme_initialize in drupal/core/modules/block/block.module
Assigns an initial, default set of blocks for a theme.
BreadcrumbTest::testBreadCrumbs in drupal/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php
Tests breadcrumbs on node and administrative paths.

... See full list

File

drupal/core/includes/entity.inc, line 293
Entity API for handling entities like nodes or users.

Code

function entity_load_multiple_by_properties($entity_type, array $values) {
  return Drupal::entityManager()
    ->getStorageController($entity_type)
    ->loadByProperties($values);
}