function WorkspacesEntityRepository::getCanonicalMultiple
Retrieves the canonical 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.
Overrides EntityRepositoryInterface::getCanonicalMultiple
File
-
core/
modules/ workspaces/ src/ WorkspacesEntityRepository.php, line 73
Class
- WorkspacesEntityRepository
- Provides workspace-specific mechanisms for retrieving entities.
Namespace
Drupal\workspacesCode
public function getCanonicalMultiple($entity_type_id, array $entity_ids, ?array $contexts = NULL) {
return $this->inner
->getCanonicalMultiple($entity_type_id, $entity_ids, $contexts);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.