function EntityRepositoryInterface::getActiveMultiple
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php \Drupal\Core\Entity\EntityRepositoryInterface::getActiveMultiple()
- 8.9.x core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php \Drupal\Core\Entity\EntityRepositoryInterface::getActiveMultiple()
- 10 core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php \Drupal\Core\Entity\EntityRepositoryInterface::getActiveMultiple()
Retrieves the active entity variants matching the specified context.
Parameters
string $entity_type_id: The entity type identifier.
int[]|string[] $entity_ids: An array of entity identifiers.
array|null $contexts: (optional) An associative array of arbitrary data that can be useful to determine the proper fallback sequence. See \Drupal\Core\Language\LanguageManagerInterface::getFallbackCandidates(). Using context ids from the plugin context system is deprecated.
Return value
\Drupal\Core\Entity\EntityInterface[] An array of entity object variants keyed by entity ID.
See also
getActive()
1 method overrides EntityRepositoryInterface::getActiveMultiple()
- EntityRepository::getActiveMultiple in core/
lib/ Drupal/ Core/ Entity/ EntityRepository.php - Retrieves the active entity variants matching the specified context.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityRepositoryInterface.php, line 132
Class
- EntityRepositoryInterface
- Provides an interface for an entity repository.
Namespace
Drupal\Core\EntityCode
public function getActiveMultiple($entity_type_id, array $entity_ids, ?array $contexts = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.